Skip to content

Commit

Permalink
fix: add undefined type to useResourceSlotsDetails (#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby authored and agatha197 committed Aug 12, 2024
1 parent c06f0d8 commit d07378c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/src/hooks/backendai.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export const useResourceSlotsDetails = (resourceGroupName?: string) => {
const [key, checkUpdate] = useUpdatableState('first');
const baiRequestWithPromise = useBaiSignedRequestWithPromise();
const baiClient = useSuspendedBackendaiClient();
const { data: resourceSlots } = useTanQuery<{
[key: string]: ResourceSlotDetail | undefined;
let { data: resourceSlots } = useTanQuery<{
[key: string]: ResourceSlotDetail;
}>({
queryKey: ['useResourceSlots', resourceGroupName, key],
queryFn: () => {
Expand Down

0 comments on commit d07378c

Please sign in to comment.