fix(web): http node body variable filter update
This commit is contained in:
@@ -59,7 +59,7 @@ const EditableTable: FC<EditableTableProps> = ({
|
|||||||
render: (_: any, __: TableRow, index: number) => (
|
render: (_: any, __: TableRow, index: number) => (
|
||||||
<Form.Item name={[index, 'name']} noStyle>
|
<Form.Item name={[index, 'name']} noStyle>
|
||||||
<Editor
|
<Editor
|
||||||
options={booleanFilterOptions}
|
options={booleanFilterOptions.filter(option => !option.dataType.includes('file'))}
|
||||||
type="input"
|
type="input"
|
||||||
className={contentClassName}
|
className={contentClassName}
|
||||||
size={size}
|
size={size}
|
||||||
@@ -109,7 +109,7 @@ const EditableTable: FC<EditableTableProps> = ({
|
|||||||
const currentType = form.getFieldValue([...Array.isArray(parentName) ? parentName : [parentName], index, 'type']);
|
const currentType = form.getFieldValue([...Array.isArray(parentName) ? parentName : [parentName], index, 'type']);
|
||||||
const filteredOptions = currentType === 'file'
|
const filteredOptions = currentType === 'file'
|
||||||
? booleanFilterOptions.filter(option => option.dataType.includes('file'))
|
? booleanFilterOptions.filter(option => option.dataType.includes('file'))
|
||||||
: booleanFilterOptions;
|
: booleanFilterOptions.filter(option => !option.dataType.includes('file'));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Form.Item name={[index, 'value']} noStyle>
|
<Form.Item name={[index, 'value']} noStyle>
|
||||||
|
|||||||
Reference in New Issue
Block a user