arg enum small fix

This commit is contained in:
Ruben Fiszel
2024-06-17 22:42:37 +02:00
parent 25024a920d
commit 95cdeacef9
+3 -5
View File
@@ -16,13 +16,11 @@
const dispatch = createEventDispatcher()
let customItems: Array<{
value: string
label: string
}> = []
let customItems: string[] = []
function onCreate(newItem: string) {
customItems = [...customItems, { value: newItem, label: newItem }]
console.log(newItem)
customItems = [...customItems, newItem]
return newItem
}