Fix activity content not properly loaded
This commit is contained in:
@ -16,8 +16,8 @@ export const useReplaceActivityBlockEditorContent = (
|
||||
.getLoadable(recordStoreFamilyState(activityId))
|
||||
.getValue();
|
||||
|
||||
const content = isNonEmptyString(activityInStore?.body)
|
||||
? JSON.parse(activityInStore?.body)
|
||||
const content = isNonEmptyString(activityInStore?.bodyV2.blocknote)
|
||||
? JSON.parse(activityInStore?.bodyV2.blocknote)
|
||||
: [{ type: 'paragraph', content: '' }];
|
||||
|
||||
if (!isDeeplyEqual(editor.document, content)) {
|
||||
|
||||
Reference in New Issue
Block a user