Browse Source

system repo bug fix

pull/1/head
Tim Glasgow 2 years ago
parent
commit
0944352a3f
  1. 2
      squarenotsquare/src/realm/repos/SystemRepo.js

2
squarenotsquare/src/realm/repos/SystemRepo.js

@ -45,7 +45,7 @@ export default class SystemRepo {
deleteSystemValue = (key) => { deleteSystemValue = (key) => {
let existingKey = this.getSystemKeyValue(key); let existingKey = this.getSystemKeyValue(key);
if (!existingKey.id === null) { if (existingKey.id !== null) {
this.realmDB.write(() => { this.realmDB.write(() => {
this.realmDB.delete(existingKey); this.realmDB.delete(existingKey);
}); });

Loading…
Cancel
Save