Skip to content

Commit

Permalink
upgrade use-query version
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Nov 14, 2023
1 parent c16d69d commit c9617fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/dashboard/src/data/setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import * as ConfigurationClasses from "@gitpod/public-api/lib/gitpod/v1/configur
// This is used to version the cache
// If data we cache changes in a non-backwards compatible way, increment this version
// That will bust any previous cache versions a client may have stored
const CACHE_VERSION = "3";
const CACHE_VERSION = "4";

export function noPersistence(queryKey: QueryKey): QueryKey {
return [...queryKey, "no-persistence"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useListWorkspacesQuery = ({ limit }: UseListWorkspacesQueryArgs) =>

export function getListWorkspacesQueryKey(orgId?: string) {
if (!orgId) {
return ["workspace", "list"];
return ["workspaces", "list"];
}
return ["workspace", "list", orgId];
return ["workspaces", "list", orgId];
}

0 comments on commit c9617fa

Please sign in to comment.