From ca2f346de5ca92f5685c702da6c2ed0fd698b933 Mon Sep 17 00:00:00 2001 From: Anatole Sot <47571181+ano0002@users.noreply.github.com> Date: Sun, 25 Feb 2024 15:02:42 +0100 Subject: [PATCH] Fix tags not appearing in the filter list when reopened --- src/components/Selector/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Selector/index.tsx b/src/components/Selector/index.tsx index 0a8617f1d..240f6c294 100644 --- a/src/components/Selector/index.tsx +++ b/src/components/Selector/index.tsx @@ -239,6 +239,13 @@ export const KeywordSelector = ({ value: keyword.id, })) ); + } else { + setDefaultDataValue( + defaultValue.split(',').map((keyword, idx) => ({ + label: keyword, + value: idx, + })) + ); } };