Fix moving a widget to another tab (#19450)
https://github.com/user-attachments/assets/aac81e79-7f2f-4a34-bf68-c76061086821 --------- Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
co-authored by
Weiko
parent
1e908e5f0f
commit
16e145b036
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should match snapshot 1`] = `
|
||||
{
|
||||
@@ -195,14 +195,14 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma
|
||||
"deletedAt",
|
||||
"conditionalDisplay",
|
||||
"isActive",
|
||||
"overrides",
|
||||
"universalOverrides",
|
||||
],
|
||||
"propertiesToStringify": [
|
||||
"gridPosition",
|
||||
"position",
|
||||
"universalConfiguration",
|
||||
"conditionalDisplay",
|
||||
"overrides",
|
||||
"universalOverrides",
|
||||
],
|
||||
},
|
||||
"permissionFlag": {
|
||||
|
||||
+2
-1
@@ -921,6 +921,7 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
|
||||
toCompare: false,
|
||||
toStringify: false,
|
||||
universalProperty: 'pageLayoutTabUniversalIdentifier',
|
||||
isOverridable: true,
|
||||
},
|
||||
conditionalDisplay: {
|
||||
toCompare: true,
|
||||
@@ -937,7 +938,7 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
|
||||
overrides: {
|
||||
toCompare: true,
|
||||
toStringify: true,
|
||||
universalProperty: undefined,
|
||||
universalProperty: 'universalOverrides',
|
||||
},
|
||||
},
|
||||
pageLayoutTab: {
|
||||
|
||||
+1
@@ -36,6 +36,7 @@ export const splitEntitiesByResetStrategy = <
|
||||
...entity,
|
||||
isActive: true as const,
|
||||
overrides: null,
|
||||
...('universalOverrides' in entity ? { universalOverrides: null } : {}),
|
||||
updatedAt: now,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user