mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Update ProductFlagMapping types and related references
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ import { SidebarMenuItem } from '@/components/molecules/SidebarMenu';
|
||||
import { OptionType } from '@/components/input/SelectInput';
|
||||
import {
|
||||
ConstantsApiResponse,
|
||||
ProductFlagMappingUI,
|
||||
ProductFlagMapping,
|
||||
TransformedConstants,
|
||||
} from '@/types/api/constants/constants';
|
||||
|
||||
@@ -226,7 +226,7 @@ export function formatConstantLabel(value: string): string {
|
||||
*/
|
||||
export function transformProductFlagMapping(
|
||||
mapping: ConstantsApiResponse['product_flag_mapping']
|
||||
): ProductFlagMappingUI {
|
||||
): ProductFlagMapping {
|
||||
return {
|
||||
flags: mapping.flags.map(toOption),
|
||||
options: mapping.options.map((opt) => ({
|
||||
|
||||
Reference in New Issue
Block a user