Skip to content

Build your personal knowledge base with Trilium Notes

fix error after confirming mention relation name

zadam5e75d2380a54
diff --git a/src/public/app/widgets/attribute_editor.js b/src/public/app/widgets/attribute_editor.js
index 9d231f59ba..4ff99a950e 100644
--- a/src/public/app/widgets/attribute_editor.js
+++ b/src/public/app/widgets/attribute_editor.js
@@ -351,7 +351,9 @@ export default class AttributeEditorWidget extends TabAwareWidget {
}
if (this.$errors.is(":visible")) {
- this.$errors.slideUp();
+ // using .hide() instead of .slideUp() since this will also hide the error after confirming
+ // mention for relation name which suits up. When using.slideUp() error will appear and the slideUp which is weird
+ this.$errors.hide();
}
}