Skip to content

Commit 96e2cc2

Browse files
committed
fix(mermaid): diagram still displayed on error
1 parent 475374a commit 96e2cc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/public/app/widgets/mermaid.ts

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export default class MermaidWidget extends NoteContextAwareWidget {
116116
} catch (e: any) {
117117
console.warn(e);
118118
this.#cleanUpZoom();
119+
this.$display.empty();
119120
this.$errorMessage.text(e.message);
120121
this.$errorContainer.show();
121122
}

0 commit comments

Comments
 (0)