Skip to content

Commit

Permalink
Fix the issue of firebase not being happy with the "undefined" value
Browse files Browse the repository at this point in the history
  • Loading branch information
whimet committed Dec 18, 2023
1 parent 56d2d0e commit e3a55c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/itemService.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if (window.zenumlDesktop) {

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

0 comments on commit e3a55c9

Please sign in to comment.