Skip to content

Commit

Permalink
Fix infinite loading spinner issue on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
salmenf committed Oct 20, 2023
1 parent 21ce421 commit 5da4548
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion @webwriter/core/viewmodel/commandcontroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ class NodeCommand<SPEC extends CommandSpec = CommandSpec> extends Command<SPEC>
}
run(options?: any, e?: Event) {
const {exec, editorState} = this.host.activeEditor ?? {exec: () => {}}
console.log(editorState)
return super.run(options, e, (host, attrs) => exec(wrapSelection(this.id, attrs)))
}
get active() {
Expand Down
1 change: 1 addition & 0 deletions @webwriter/core/viewmodel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const ViewModelMixin = (cls: LitElementConstructor, isSettings=false) =>
const packageJsonPath = await join(await appDir(), "package.json")
this.environment.api.watch(packageJsonPath, () => this.store.packages.loadAll())
this.initializing = false
this.requestUpdate()
resolve(undefined)
})
}
Expand Down

0 comments on commit 5da4548

Please sign in to comment.