Marie
2024-08-23 12:13:49 +02:00
committed by GitHub
parent 4c5fc2311f
commit 981f311ed0
3 changed files with 11 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export const generateNewSelectOption = (
const newOptionLabel = generateNewSelectOptionLabel(options);
return {
color: getNextThemeColor(options[options.length - 1].color),
color: getNextThemeColor(options[options.length - 1]?.color),
id: v4(),
label: newOptionLabel,
position: options.length,