Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Aug 18, 2024
1 parent 4f65036 commit 9d779aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@node-projects/gitgraph-js": "^2.1.0",
"@node-projects/lean-he-esm": "^3.3.0",
"@node-projects/node-html-parser-esm": "^6.2.0",
"@node-projects/web-component-designer": "^0.1.211",
"@node-projects/web-component-designer": "^0.1.212",
"@node-projects/web-component-designer-codeview-monaco": "^0.1.27",
"@node-projects/web-component-designer-htmlparserservice-nodehtmlparser": "^0.1.11",
"@node-projects/web-component-designer-stylesheetservice-css-tools": "^0.1.9",
Expand Down
2 changes: 1 addition & 1 deletion src/CommandHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class CommandHandling {
} else {
this.handleCommand(buttons, null);
}
const target: DocumentContainer = <DocumentContainer>this.dockManager.activeDocument.resolvedElementContent;
const target: DocumentContainer = <DocumentContainer>this.dockManager.activeDocument?.resolvedElementContent;
if (target) {
const undoCount = target.instanceServiceContainer.undoService.undoCount;
const redoCount = target.instanceServiceContainer.undoService.redoCount;
Expand Down

0 comments on commit 9d779aa

Please sign in to comment.