Skip to content

Commit 6359d19

Browse files
committed
chore(dm-client): update dm client and fix breaking changes
1 parent 60512b2 commit 6359d19

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

hooks/projectHooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const useCurrentProjectId = () => {
6161
export const useCurrentProject = () => {
6262
const isAuthorized = useIsAuthorized();
6363
const { projectId } = useCurrentProjectId();
64-
const { data } = useGetProjects({ query: { enabled: !!isAuthorized } });
64+
const { data } = useGetProjects(undefined, { query: { enabled: !!isAuthorized } });
6565
const projects = data?.projects;
6666

6767
return projects?.find((project) => project.project_id === projectId) ?? null;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@rjsf/validator-ajv8": "^5.2.1",
5555
"@sentry/nextjs": "7.43.0",
5656
"@squonk/account-server-client": "2.0.3",
57-
"@squonk/data-manager-client": "1.1.3-rc.2",
57+
"@squonk/data-manager-client": "1.1.4-rc.1",
5858
"@squonk/mui-theme": "3.0.2",
5959
"@tanstack/match-sorter-utils": "8.7.6",
6060
"@tanstack/react-query": "4.26.1",

pages/executions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const getServerSideProps = withPageAuthRequiredSSR({
4040
// Prefetch some data
4141
const queries = [
4242
queryClient.prefetchQuery(getGetProjectsQueryKey(), () =>
43-
getProjects(dmOptions(accessToken)),
43+
getProjects(undefined, dmOptions(accessToken)),
4444
),
4545
queryClient.prefetchQuery(getGetApplicationsQueryKey(), () =>
4646
getApplications(dmOptions(accessToken)),

pages/project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const getServerSideProps = withPageAuthRequiredSSR<ProjectProps>({
4848
// Prefetch some data
4949
const queries = [
5050
queryClient.prefetchQuery(getGetProjectsQueryKey(), () =>
51-
getProjects(dmOptions(accessToken)),
51+
getProjects(undefined, dmOptions(accessToken)),
5252
),
5353
queryClient.prefetchQuery(getGetFilesQueryKey(filesParam), () =>
5454
getFiles(filesParam, dmOptions(accessToken)),

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)