Migrate pagelayout position frontend (#18229)
## Context Part 1 of migrating gridPosition in favor of typed position FE should now always send both values to the BE and use both. Next steps: - Update the backend to enforce and validate the new position field + DB migrations gridPositon -> position (type: GRID) - Cleanup frontend usage - Cleanup backend
This commit is contained in:
+2
-2
@@ -329,7 +329,7 @@ export const fromPageLayoutWidgetConfigurationToUniversalConfiguration = ({
|
||||
}
|
||||
|
||||
case WidgetConfigurationType.FRONT_COMPONENT: {
|
||||
const { frontComponentId, ...rest } = configuration;
|
||||
const { frontComponentId, configurationType } = configuration;
|
||||
|
||||
const frontComponentUniversalIdentifier: string | null =
|
||||
frontComponentUniversalIdentifierById[frontComponentId] ?? null;
|
||||
@@ -345,7 +345,7 @@ export const fromPageLayoutWidgetConfigurationToUniversalConfiguration = ({
|
||||
}
|
||||
|
||||
return {
|
||||
...rest,
|
||||
configurationType,
|
||||
frontComponentUniversalIdentifier,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user