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 set from 'lodash/set';
|
||||||
import type { UseFormReturn } from 'react-hook-form';
|
import type { UseFormReturn } from 'react-hook-form';
|
||||||
import isEqual from 'lodash/isEqual';
|
import isEqual from 'lodash/isEqual';
|
||||||
|
import omit from 'lodash/omit';
|
||||||
import type {
|
import type {
|
||||||
IField,
|
IField,
|
||||||
IFieldDropdownSource,
|
IFieldDropdownSource,
|
||||||
@@ -95,7 +96,8 @@ function useDynamicData(stepId: string | undefined, schema: IField) {
|
|||||||
getDynamicData({
|
getDynamicData({
|
||||||
variables: {
|
variables: {
|
||||||
stepId,
|
stepId,
|
||||||
...computedVariables,
|
key: computedVariables.key,
|
||||||
|
parameters: omit(computedVariables, 'key'),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user