mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
fix: fix array static input editor initialization
This commit is contained in:
@@ -187,7 +187,6 @@
|
||||
{/if}
|
||||
{#if editableSchema}
|
||||
<label class="text-secondary">
|
||||
Description
|
||||
<textarea
|
||||
class="mb-1"
|
||||
use:autosize
|
||||
|
||||
@@ -109,10 +109,11 @@
|
||||
if ((e.key === 'Enter' || e.key === ' ') && dragDisabled) dragDisabled = false
|
||||
}
|
||||
|
||||
let items =
|
||||
componentInput.value?.map((item, index) => {
|
||||
let items = (Array.isArray(componentInput.value) ? componentInput.value : []).map(
|
||||
(item, index) => {
|
||||
return { value: item, id: generateRandomString() }
|
||||
}) ?? []
|
||||
}
|
||||
)
|
||||
|
||||
$: items && handleItemsChange()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user