From 1f697fdb6ed6f66b151da9f443ba96b59391e3f9 Mon Sep 17 00:00:00 2001 From: Andrea Alberti Date: Wed, 21 Aug 2024 10:58:06 +0200 Subject: [PATCH] - Fixed bug where annotations could not be added when some text is provided in the search field to restrict the range of annotations displayed. --- src/main.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main.ts b/src/main.ts index 8dbebd9..634c8b1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -391,14 +391,11 @@ export default class PluginsAnnotations extends Plugin { ): void { next.call(this, pluginManifest, containerEl, nameMatch, authorMatch, descriptionMatch); - // Add your custom code for personal annotations here - const annotation = self.settings.annotations[pluginManifest.id]; - if (annotation) { - if(containerEl && containerEl.lastElementChild) - { - self.addAnnotation(containerEl.lastElementChild) - } - } + // Custom code for personal annotations here + if(containerEl && containerEl.lastElementChild) + { + self.addAnnotation(containerEl.lastElementChild) + } }; } });