Skip to content

Commit

Permalink
fix: Fix issue when update only summary of newly created note - EXO-7…
Browse files Browse the repository at this point in the history
…4245 - Meeds-io/MIPs#128 (#1116)

fix Issue when update only summary of newly created note
  • Loading branch information
hakermi authored and azayati committed Sep 18, 2024
1 parent 28934a5 commit 1d5a3b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ && isOriginalFeaturedImage(draftPage, getNoteByIdAndLang(Long.valueOf(draftPage.
lang,
isDraft ? NOTE_METADATA_DRAFT_PAGE_OBJECT_TYPE
: NOTE_METADATA_PAGE_OBJECT_TYPE);
if (metadataItem != null) {
if (metadataItem != null && metadataItem.getProperties() != null) {
Map<String, String> properties = metadataItem.getProperties();
properties.remove(FEATURED_IMAGE_ID);
properties.remove(FEATURED_IMAGE_UPDATED_DATE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ export default {
this.summaryContent = this.currentNoteProperties?.summary || '';
this.hasFeaturedImageValue = this.hasFeaturedImage;
this.imageData = null;
this.uploadId = null;
},
close() {
this.$refs.metadataDrawer.close();
Expand Down

0 comments on commit 1d5a3b1

Please sign in to comment.