Skip to content

Commit 9b23489

Browse files
committed
fix: only load dashboard query if teamId is there
1 parent df45a47 commit 9b23489

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

src/pages/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function (): React.ReactElement {
3232
data: dashboard,
3333
isFetching: isFetchingDashboard,
3434
refetch: refetchDashboard,
35-
} = useGetDashboardQuery({ teamId })
35+
} = useGetDashboardQuery({ teamId }, { skip: !isPlatformView && !teamId })
3636

3737
const isDirty = useAppSelector(({ global: { isDirty } }) => isDirty)
3838
useEffect(() => {

src/redux/otomiApi.ts

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5238,7 +5238,9 @@ export type GetDockerConfigApiArg = {
52385238
}
52395239
export type GetSessionApiResponse = /** status 200 Get the session for the logged in user */ {
52405240
ca?: string
5241-
core?: object
5241+
core?: {
5242+
[key: string]: any
5243+
}
52425244
corrupt?: boolean
52435245
editor?: string
52445246
inactivityTimeout?: number
@@ -5277,7 +5279,9 @@ export type GetSessionApiResponse = /** status 200 Get the session for the logge
52775279
console?: string
52785280
values?: string
52795281
}
5280-
valuesSchema?: object
5282+
valuesSchema?: {
5283+
[key: string]: any
5284+
}
52815285
}
52825286
export type GetSessionApiArg = void
52835287
export type GetApiDocApiResponse = /** status 200 The requested apiDoc. */ object
@@ -5868,8 +5872,12 @@ export type EditSettingsApiArg = {
58685872
export type GetAppsApiResponse = /** status 200 The request is successful. */ {
58695873
enabled?: boolean
58705874
id: string
5871-
rawValues?: object
5872-
values?: object
5875+
rawValues?: {
5876+
[key: string]: any
5877+
}
5878+
values?: {
5879+
[key: string]: any
5880+
}
58735881
}[]
58745882
export type GetAppsApiArg = {
58755883
teamId: string
@@ -5885,8 +5893,12 @@ export type ToggleAppsApiArg = {
58855893
export type GetTeamAppApiResponse = /** status 200 The request is successful. */ {
58865894
enabled?: boolean
58875895
id: string
5888-
rawValues?: object
5889-
values?: object
5896+
rawValues?: {
5897+
[key: string]: any
5898+
}
5899+
values?: {
5900+
[key: string]: any
5901+
}
58905902
}
58915903
export type GetTeamAppApiArg = {
58925904
teamId: string
@@ -5900,8 +5912,12 @@ export type EditAppApiArg = {
59005912
body: {
59015913
enabled?: boolean
59025914
id: string
5903-
rawValues?: object
5904-
values?: object
5915+
rawValues?: {
5916+
[key: string]: any
5917+
}
5918+
values?: {
5919+
[key: string]: any
5920+
}
59055921
}
59065922
}
59075923
export type GetAiModelsApiResponse = /** status 200 Successfully obtained shared AI models */ ({

0 commit comments

Comments
 (0)