|
@@ -41,7 +41,7 @@ export function OptionValueInput({ groupName, groupIndex, disabled = false }: Op
|
|
|
|
|
|
|
|
const handleAddValue = () => {
|
|
const handleAddValue = () => {
|
|
|
if (newValue.trim() && !fields.some(f => f.value === newValue.trim())) {
|
|
if (newValue.trim() && !fields.some(f => f.value === newValue.trim())) {
|
|
|
- append({ value: newValue.trim(), id: crypto.randomUUID() });
|
|
|
|
|
|
|
+ append({ value: newValue.trim(), id: Date.now().toString() });
|
|
|
setNewValue('');
|
|
setNewValue('');
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|