Skip to content

The open alternative to Salesforce, designed for AI.

Fix view disappearing when switching from WORKSPACE to UNLISTED visibility (#16289)

Félix Malfait578aa9d5ca29
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-flat-entity-properties-to-compare-and-stringify.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-flat-entity-properties-to-compare-and-stringify.constant.ts
index 57da03c5343..08a84438cf3 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-flat-entity-properties-to-compare-and-stringify.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-flat-entity-properties-to-compare-and-stringify.constant.ts
@@ -40,7 +40,12 @@ export const ALL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY = {
propertiesToStringify: ['standardOverrides'],
},
view: {
- propertiesToCompare: ['key', 'deletedAt', ...FLAT_VIEW_EDITABLE_PROPERTIES],
+ propertiesToCompare: [
+ 'key',
+ 'deletedAt',
+ 'createdByUserWorkspaceId',
+ ...FLAT_VIEW_EDITABLE_PROPERTIES,
+ ],
propertiesToStringify: [],
},
viewField: {