Просмотр исходного кода

fix(dashboard): Remove use of crypto.randomUUID in option input (#3618)

Alex Balatsky 6 месяцев назад
Родитель
Сommit
61bed482fa

+ 1 - 1
packages/dashboard/src/app/routes/_authenticated/_products/components/option-value-input.tsx

@@ -41,7 +41,7 @@ export function OptionValueInput({ groupName, groupIndex, disabled = false }: Op
 
     const handleAddValue = () => {
         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('');
         }
     };