#114 - Fix for category/tag provides as string

This commit is contained in:
Elio Struyf
2021-09-24 10:07:15 +02:00
parent 24f69ea819
commit a523c4ab63
+1 -1
View File
@@ -123,7 +123,7 @@ export const TagPicker: React.FunctionComponent<ITagPickerProps> = (props: React
React.useEffect(() => {
if (prevSelected !== crntSelected) {
setSelected(crntSelected);
setSelected(typeof crntSelected === "string" ? [crntSelected] : crntSelected);
}
}, [crntSelected]);