fix: send parameters to dynamic data query

This commit is contained in:
Ali BARIN
2023-05-13 20:02:51 +00:00
parent d23d5d2da0
commit 3572e6f65a

View File

@@ -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'),
},
});
}