mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 20:54:50 +03:00
typihg nsi ihard
This commit is contained in:
parent
de47b68e9b
commit
4624dc1eb3
@ -78,7 +78,7 @@ export class AppSettings {
|
||||
}
|
||||
|
||||
async storeValueWithDefault<T>(initial: T, key: string): Promise<T> {
|
||||
const stored = this.diskStore?.get(key) as T;
|
||||
return stored === null ? initial : stored;
|
||||
const stored = (await this.diskStore?.get(key)) as T;
|
||||
return stored === null || stored === undefined ? initial : stored;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user