The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
View field creation through view creation unique id for migrated view (#14501)
Paul Rastoinf13cbad5affe
diff --git a/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.ts b/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.tsindex 6b7c5e03c1d..eb4ea9b4b02 100644--- a/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.ts+++ b/packages/twenty-front/src/modules/views/hooks/useCreateViewFromCurrentView.ts@@ -159,8 +159,8 @@ export const useCreateViewFromCurrentView = (viewBarComponentId?: string) => {await createViewFieldRecords(sourceView.viewFields.map<CreateCoreViewFieldMutationVariables>(- ({ __typename, ...viewField }) => ({- input: { ...viewField, viewId: newViewId },+ ({ __typename, id: _id, ...viewField }) => ({+ input: { ...viewField, id: v4(), viewId: newViewId },}),),);