fix: links for template notes
This commit is contained in:
@@ -152,6 +152,8 @@ export class LinkingController extends AbstractViewController {
|
|||||||
|
|
||||||
reloadLinkedFiles() {
|
reloadLinkedFiles() {
|
||||||
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
|
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
|
||||||
|
this.linkedFiles = []
|
||||||
|
this.filesLinkingToActiveItem = []
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,7 +177,7 @@ export class LinkingController extends AbstractViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reloadLinkedTags() {
|
reloadLinkedTags() {
|
||||||
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
|
if (!this.activeItem) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,6 +188,7 @@ export class LinkingController extends AbstractViewController {
|
|||||||
|
|
||||||
reloadLinkedNotes() {
|
reloadLinkedNotes() {
|
||||||
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
|
if (!this.activeItem || this.application.items.isTemplateItem(this.activeItem)) {
|
||||||
|
this.notesLinkedToItem = []
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,6 +200,7 @@ export class LinkingController extends AbstractViewController {
|
|||||||
|
|
||||||
reloadNotesLinkingToItem() {
|
reloadNotesLinkingToItem() {
|
||||||
if (!this.activeItem) {
|
if (!this.activeItem) {
|
||||||
|
this.notesLinkingToActiveItem = []
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user