Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jan 9, 2025
1 parent a54d63d commit 30cd13e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indigo_app/js/components/DocumentTOCView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default {
onTitleClick (e) {
e.detail.preventDefault();
if (!Indigo.view.bodyEditorView || Indigo.view.bodyEditorView.canCancelEdits()) {
if (!Indigo.view.sourceEditorView || Indigo.view.sourceEditorView.confirmAndDiscardChanges()) {
this.selectItem(e.target.item.index);
}
}
Expand Down
2 changes: 1 addition & 1 deletion indigo_app/static/javascript/indigo-app.js

Large diffs are not rendered by default.

0 comments on commit 30cd13e

Please sign in to comment.