fix(mermaid): diagram still displayed on error

pull/1462/head
Elian Doran 2025-03-18 20:43:11 +07:00
parent 475374a04b
commit 96e2cc29e0
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

@ -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();
}