diff --git a/src/components/TagSelect/index.tsx b/src/components/TagSelect/index.tsx index 260e410e..a5398159 100644 --- a/src/components/TagSelect/index.tsx +++ b/src/components/TagSelect/index.tsx @@ -71,7 +71,7 @@ const TagSelect: FC & { const value = props.value ?? innerValue; const setValue = (nextValue: (string | number)[]) => { if (props.value === undefined) { - setInnerValue(nextValue); + setInnerValue(() => nextValue); } props.onChange?.(nextValue); };