Feat/record optimistic effect (#3076)
* WIP * WIP * POC working on hard coded completedAt field * Finished isRecordMatchingFilter, mock of pg_graphql filtering mechanism * Fixed and cleaned * Unregister unused optimistic effects * Fix lint * Fixes from review --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
5
packages/twenty-front/src/utils/isEmptyObject.ts
Normal file
5
packages/twenty-front/src/utils/isEmptyObject.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { isObject } from '@sniptt/guards';
|
||||
|
||||
export const isEmptyObject = (obj: any): obj is object => {
|
||||
return isObject(obj) && Object.keys(obj).length === 0;
|
||||
};
|
||||
Reference in New Issue
Block a user