[BUG][PROD] Fix ViewGroup creation optimistic cache (#10014)
# Introduction When we create a new `view` from record table that has relation such as opportunities. Encountered invariant conditions: ## Unknown fiel `__typename` `Should never occur, encountered unknown fields __typename in objectMetadaItem viewGroup`, ### Fixed by ignoring unknown internal fields ## Provided both relation `view` and `viewId` `Should never provide relation mutation through anything else than the fieldId e.g companyId and not company, encountered: view` ### Fixed by sending only `viewId` to `createManyRecords` in `usePersistViewGroupRecords.ts`
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
import { BaseObjectRecord } from '@/object-record/types/BaseObjectRecord';
|
||||
|
||||
export const OBJECT_RECORD_TYPENAME_KEY =
|
||||
'__typename' satisfies keyof BaseObjectRecord;
|
||||
Reference in New Issue
Block a user