From 971f464ee699efcf24e0315fc5c7450cba124a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 25 Aug 2020 09:35:13 +0200 Subject: [PATCH] Fix select for multiple DOIs --- content/dataset.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index f5d8e045..0194d4c3 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -235,7 +235,9 @@ draft: false for (const val of vals) { for (const set of publis.sets.values()) { if (set.includes(val)) { - newvals.push(set) + if (!newvals.some(v=>JSON.stringify(v)===JSON.stringify(set))) { + newvals.push(set) + } } } }