Feat: Filter the query variable drop-down box options by type #3221 (#8485)

### What problem does this PR solve?

Feat: Filter the query variable drop-down box options by type #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-06-25 16:23:20 +08:00
committed by GitHub
parent b705ff08fe
commit c4b58ed195
13 changed files with 124 additions and 23 deletions

View File

@ -4,7 +4,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
import { useMemo } from 'react';
import { useForm } from 'react-hook-form';
import { z } from 'zod';
import { initialRetrievalValues } from '../../constant';
import { initialRetrievalValues, VariableType } from '../../constant';
import { useWatchFormChange } from '../../hooks/use-watch-form-change';
import { INextOperatorForm } from '../../interface';
import { Output } from '../components/output';
@ -50,7 +50,10 @@ const IterationForm = ({ node }: INextOperatorForm) => {
}}
>
<FormContainer>
<QueryVariable name="items_ref"></QueryVariable>
<QueryVariable
name="items_ref"
type={VariableType.Array}
></QueryVariable>
</FormContainer>
<Output list={outputList}></Output>
</form>