From 458f8f6981827c7dfe15c435227e5c9d583327e0 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 13 Dec 2021 17:52:19 +0000 Subject: [PATCH] fixed tag update not affecting local data --- src/js/popups/result-tags-popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/popups/result-tags-popup.js b/src/js/popups/result-tags-popup.js index d67a490cb..f1379742e 100644 --- a/src/js/popups/result-tags-popup.js +++ b/src/js/popups/result-tags-popup.js @@ -98,7 +98,7 @@ $("#resultEditTagsPanel .confirmButton").click((e) => { } else { Notifications.add("Tags updated.", 1, 2); DB.getSnapshot().results.forEach((result) => { - if (result.id === resultid) { + if (result._id === resultid) { result.tags = newtags; } });