[Phones migration][Fix] Remove field from view after creation (#7243)

This commit is contained in:
Marie
2024-09-25 11:31:07 +02:00
committed by GitHub
parent 7c90e717d6
commit b3a0cba961

View File

@@ -168,6 +168,11 @@ export class MigratePhoneFieldsToPhonesCommand extends ActiveWorkspacesCommandRu
defaultValue: null,
name: 'phones',
} satisfies CreateFieldInput);
await this.viewService.removeFieldFromViews({
workspaceId: workspaceId,
fieldId: standardPersonPhonesFieldType.id,
});
}
// Copy phone data from Text type to Phones type