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
@@ -313,7 +313,7 @@ export const fromUniversalConfigurationToFlatPageLayoutWidgetConfiguration = ({
|
||||
}
|
||||
|
||||
case WidgetConfigurationType.FRONT_COMPONENT: {
|
||||
const { frontComponentUniversalIdentifier, ...rest } =
|
||||
const { frontComponentUniversalIdentifier, configurationType } =
|
||||
universalConfiguration;
|
||||
|
||||
if (!isDefined(frontComponentUniversalIdentifier)) {
|
||||
@@ -336,7 +336,7 @@ export const fromUniversalConfigurationToFlatPageLayoutWidgetConfiguration = ({
|
||||
}
|
||||
|
||||
return {
|
||||
...rest,
|
||||
configurationType,
|
||||
frontComponentId: flatFrontComponent.id,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user