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

Loading…
Cancel
Save