mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-05 01:11:19 +02:00
#114 - Fix for category/tag provides as string
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user