Skip to content

Commit e3a55c9

Browse files
committed
Fix the issue of firebase not being happy with the "undefined" value
1 parent 56d2d0e commit e3a55c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/itemService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if (window.zenumlDesktop) {
7575

7676
async setItem(id, item) {
7777
// Saving imageBase64 in localStorage often cause errors due to size limit.
78-
item.imageBase64 = undefined;
78+
delete item.imageBase64;
7979
const d = deferred();
8080
var remotePromise;
8181
// TODO: check why we need to save locally always?

0 commit comments

Comments
 (0)