Skip to content

Commit 8a4661b

Browse files
committed
Fix issue with loading dynamic props, e.g. google sheets column headers
1 parent c2e4d51 commit 8a4661b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/connect-react/src/hooks/form-context.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,13 @@ export const FormContextProvider = <T extends ConfigurableProps>({
129129
configuredProps,
130130
dynamicPropsId: dynamicProps?.id,
131131
};
132+
const queryKey = reloadPropIdx ? `dynamicProps:${reloadPropIdx}` : "dynamicProps"
132133
const {
133134
isFetching: dynamicPropsQueryIsFetching,
134135
// TODO error
135136
} = useQuery({
136137
queryKey: [
137-
"dynamicProps",
138+
queryKey
138139
],
139140
queryFn: async () => {
140141
const { dynamicProps } = await client.componentReloadProps(componentReloadPropsInput);

0 commit comments

Comments
 (0)