fix: links for template notes

This commit is contained in:
Aman Harwara
2022-10-20 13:06:38 +05:30
parent 1f07d9fa17
commit 60a8e8b92b

View File

@@ -152,6 +152,8 @@ export class LinkingController extends AbstractViewController {
reloadLinkedFiles() {
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
this.linkedFiles = []
this.filesLinkingToActiveItem = []
return
}
@@ -175,7 +177,7 @@ export class LinkingController extends AbstractViewController {
}
reloadLinkedTags() {
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
if (!this.activeItem) {
return
}
@@ -186,6 +188,7 @@ export class LinkingController extends AbstractViewController {
reloadLinkedNotes() {
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
this.notesLinkedToItem = []
return
}
@@ -197,6 +200,7 @@ export class LinkingController extends AbstractViewController {
reloadNotesLinkingToItem() {
if (!this.activeItem) {
this.notesLinkingToActiveItem = []
return
}