Skip to content

Commit 30e9bef

Browse files
authored
Merge pull request #638 from ZenUml/fix-save
Fix the error during saving due to removed "imageBase64" data
2 parents 1afdb65 + 748839c commit 30e9bef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/syncService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ async function syncDiagram(currentItem) {
66
return;
77
}
88

9-
const { id, title, js, imageBase64 } = currentItem;
10-
if (!js || !title || !imageBase64) {
11-
console.error('Cannot sync diagram because of missing data', currentItem.js, currentItem.title, currentItem.imageBase64);
9+
const { id, title, js} = currentItem;
10+
if (!js || !title) {
11+
console.error(`Cannot sync diagram because of missing ${!js ? '"js"' : '"title"'} data`, currentItem);
1212
return;
1313
}
1414

0 commit comments

Comments
 (0)