mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12: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) {
|
} catch (e: any) {
|
||||||
console.warn(e);
|
console.warn(e);
|
||||||
this.#cleanUpZoom();
|
this.#cleanUpZoom();
|
||||||
|
this.$display.empty();
|
||||||
this.$errorMessage.text(e.message);
|
this.$errorMessage.text(e.message);
|
||||||
this.$errorContainer.show();
|
this.$errorContainer.show();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user