From 0291dcacd3928fad4547c0b285d6eae5d06f1199 Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Fri, 28 May 2021 20:16:01 +0530 Subject: [PATCH] Remove duplicates from TK list to avoid crashes Otherwise it throws an error because, while rendering the TK tags, you're not allowed to have one TK come more than once. That aside, we don't want *each* occurrence having its own table column, do we? --- src/App.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index e50716f..a60e09b 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -32,6 +32,9 @@ } } + // remove duplicates + tkList = [...new Set(tkList)] + return tkList }