Skip to content

Commit

Permalink
Merge pull request #141 from nasa-petal/closed-db-bug
Browse files Browse the repository at this point in the history
Fix DB is null error
  • Loading branch information
bruffridge authored Jun 12, 2024
2 parents 1fa5245 + c2a45cf commit d7b7739
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/bidaraDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ function BidaraDB() {
return BIDARA_DB;
},
close: async () => {
if (!BIDARA_DB) return;

await dbUtils.closeDB(BIDARA_DB);
BIDARA_DB = null;
}
Expand Down

0 comments on commit d7b7739

Please sign in to comment.