Przeglądaj źródła

fix: updateValues events

Gerald 8 lat temu
rodzic
commit
d2ca55a4c2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/background/utils/db.js

+ 1 - 1
src/background/utils/db.js

@@ -355,7 +355,7 @@ export function setValues(where, values) {
     ? Promise.resolve(where.id)
     : getScript(where).then(script => object.get(script, 'props.id')))
   .then(id => {
-    if (id) storage.value.dump(id, values).then(() => ({ id, values }));
+    if (id) return storage.value.dump(id, values).then(() => ({ id, values }));
   });
 }