Fix auth with jwt and localDb only in dev

This commit is contained in:
pikiou
2022-03-11 14:00:54 +01:00
parent ed8f20072f
commit 79b0dd47bf
9 changed files with 19 additions and 25 deletions

View File

@@ -219,7 +219,7 @@ export class Sheet<
async dbFirstLoad(): Promise<void> {
if (!(await hasGSheetsAccess())) {
await this.loadLocalDb()
} else if (this.toRunAfterLoad && __DEV__) {
} else if (this.toRunAfterLoad) {
// Save once
this.toRunAfterLoad.push(() => this.saveLocalDb())
}