mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
fix(mermaid): diagram still displayed on error
This commit is contained in:
parent
475374a04b
commit
96e2cc29e0
@ -116,6 +116,7 @@ export default class MermaidWidget extends NoteContextAwareWidget {
|
||||
} catch (e: any) {
|
||||
console.warn(e);
|
||||
this.#cleanUpZoom();
|
||||
this.$display.empty();
|
||||
this.$errorMessage.text(e.message);
|
||||
this.$errorContainer.show();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user