Skip to content

Commit 2844057

Browse files
authored
fix: get team app details (#582)
1 parent 82d25e9 commit 2844057

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export default function ({
2020
const { refetchAppsEnabled } = useAuthzSession(teamId)
2121
const [edit, { isLoading: isLoadingUpdate }] = useEditAppMutation()
2222
const [toggle, { isLoading: isLoadingToggle }] = useToggleAppsMutation()
23-
const { data, isLoading, isFetching, isError, refetch } = useGetAppQuery({ teamId, appId })
23+
const { data, isLoading, isFetching, isError, refetch } = useGetAppQuery(
24+
{ teamId, appId },
25+
{ skip: teamId !== 'admin' },
26+
)
2427
const isDirty = useAppSelector(({ global: { isDirty } }) => isDirty)
2528
useEffect(() => {
2629
if (isDirty !== false) return

0 commit comments

Comments
 (0)