Skip to content

Commit

Permalink
forget defaultworkspace update (twentyhq#9292)
Browse files Browse the repository at this point in the history
fix twentyhq#9229

see issue for more info
  • Loading branch information
guillim authored Dec 31, 2024
1 parent 5bd685e commit 2277952
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const useUpdateOneFieldMetadataItem = () => {
await refreshObjectMetadataItems();

const { data } = await apolloClient.query({ query: GET_CURRENT_USER });
setCurrentWorkspace(data?.currentUser?.defaultWorkspace);
setCurrentWorkspace(data?.currentUser?.currentWorkspace);

await apolloClient.query({
query: findManyViewsQuery,
Expand Down

0 comments on commit 2277952

Please sign in to comment.