mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-14 04:52:28 +08:00
fix(client): error in trace when changing settings that requires refresh
This commit is contained in:
parent
3db9076230
commit
09cc487e68
@ -61,8 +61,10 @@ export default class OptionsWidget extends NoteContextAwareWidget {
|
|||||||
async refreshWithNote(note) {
|
async refreshWithNote(note) {
|
||||||
const options = await server.get('options');
|
const options = await server.get('options');
|
||||||
|
|
||||||
|
if (options) {
|
||||||
this.optionsLoaded(options);
|
this.optionsLoaded(options);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async entitiesReloadedEvent({loadResults}) {
|
async entitiesReloadedEvent({loadResults}) {
|
||||||
if (loadResults.getOptionNames().length > 0) {
|
if (loadResults.getOptionNames().length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user