diff --git a/apps/api/src/app/template/usecases/update-template-columns/update-template-columns.usecase.ts b/apps/api/src/app/template/usecases/update-template-columns/update-template-columns.usecase.ts index 5bc5677f..990765a2 100644 --- a/apps/api/src/app/template/usecases/update-template-columns/update-template-columns.usecase.ts +++ b/apps/api/src/app/template/usecases/update-template-columns/update-template-columns.usecase.ts @@ -39,7 +39,7 @@ export class UpdateTemplateColumns { { _templateId }, 'isRecordFormatUpdated isCombinedFormatUpdated' ); - if (!customization.isRecordFormatUpdated && !customization.isCombinedFormatUpdated) { + if (customization && !customization.isRecordFormatUpdated && !customization.isCombinedFormatUpdated) { await this.updateCustomization.createOrReset(_templateId, { recordVariables: this.listRecordVariables(userColumns), destination: template.destination, diff --git a/apps/web/hooks/useProjectInvitationForm.tsx b/apps/web/hooks/useProjectInvitationForm.tsx index ac26d154..b063d7d0 100644 --- a/apps/web/hooks/useProjectInvitationForm.tsx +++ b/apps/web/hooks/useProjectInvitationForm.tsx @@ -87,9 +87,6 @@ export function useProjectInvitationForm({ refetchInvitations }: UseProjectInvit }), { enabled: !!profileInfo?._projectId, - onSuccess: (data) => { - console.log('API DATA', data); - }, } );