Refactored and improved seeds (#8695)

- Added a new Seeder service to help with custom object seeds
- Added RichTextFieldInput to edit a rich text field directly on the
table, but deactivated it for now.
This commit is contained in:
Lucas Bordeau
2024-12-24 14:44:52 +01:00
committed by GitHub
parent 4f329d6005
commit e9717603f2
52 changed files with 5807 additions and 86 deletions

View File

@ -0,0 +1,13 @@
import { isDefined } from 'twenty-ui';
export const parseJson = <T>(json: string | undefined | null) => {
if (!isDefined(json)) {
return null;
}
try {
return JSON.parse(json) as T;
} catch (e) {
return null;
}
};