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