fix: send parameters to dynamic data query
This commit is contained in:
@@ -4,6 +4,7 @@ import { useFormContext } from 'react-hook-form';
|
||||
import set from 'lodash/set';
|
||||
import type { UseFormReturn } from 'react-hook-form';
|
||||
import isEqual from 'lodash/isEqual';
|
||||
import omit from 'lodash/omit';
|
||||
import type {
|
||||
IField,
|
||||
IFieldDropdownSource,
|
||||
@@ -95,7 +96,8 @@ function useDynamicData(stepId: string | undefined, schema: IField) {
|
||||
getDynamicData({
|
||||
variables: {
|
||||
stepId,
|
||||
...computedVariables,
|
||||
key: computedVariables.key,
|
||||
parameters: omit(computedVariables, 'key'),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user