diff --git a/packages/twenty-front/src/pages/settings/applications/hooks/useUpdateOneApplicationVariable.ts b/packages/twenty-front/src/pages/settings/applications/hooks/useUpdateOneApplicationVariable.ts index 520227c5d9c..f75df44e70d 100644 --- a/packages/twenty-front/src/pages/settings/applications/hooks/useUpdateOneApplicationVariable.ts +++ b/packages/twenty-front/src/pages/settings/applications/hooks/useUpdateOneApplicationVariable.ts @@ -1,17 +1,15 @@ -import { useMutation } from '@apollo/client'; -import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { UPDATE_ONE_APPLICATION_VARIABLE } from '@/application-variables/graphql/mutations/updateOneApplicationVariable'; +import { useMutation } from '@apollo/client'; import { type UpdateOneApplicationVariableMutation, type UpdateOneApplicationVariableMutationVariables, } from '~/generated-metadata/graphql'; export const useUpdateOneApplicationVariable = () => { - const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< UpdateOneApplicationVariableMutation, UpdateOneApplicationVariableMutationVariables - >(UPDATE_ONE_APPLICATION_VARIABLE, { client: apolloMetadataClient }); + >(UPDATE_ONE_APPLICATION_VARIABLE); const updateOneApplicationVariable = async ({ key,