mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 05:40:49 +08:00
fix(client): uninitialized field
This commit is contained in:
parent
0ff8b7edd8
commit
ceb6134af2
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ class Options {
|
|||
constructor() {
|
||||
if (!isShare) {
|
||||
this.initializedPromise = server.get<Record<string, OptionValue>>("options").then((data) => this.load(data));
|
||||
} else {
|
||||
this.initializedPromise = Promise.resolve();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue