fix: conditionally render FieldListContainer based on inputFields length

pull/21398/head
twwu 12 months ago
parent 70119a054a
commit 377093b776

@ -45,6 +45,7 @@ const FieldList = ({
<RiAddLine className='h-4 w-4 text-text-tertiary' />
</ActionButton>
</div>
{inputFields.length > 0 && (
<FieldListContainer
className='flex flex-col gap-y-1 px-4 pb-2'
inputFields={inputFields}
@ -53,6 +54,7 @@ const FieldList = ({
onListSortChange={handleListSortChange}
readonly={readonly}
/>
)}
{showInputFieldEditor && (
<InputFieldEditor
show={showInputFieldEditor}

Loading…
Cancel
Save