Skip to content

Commit

Permalink
fix deployed by does'nt include info for internal users
Browse files Browse the repository at this point in the history
  • Loading branch information
james-tran-3005 committed Nov 15, 2024
1 parent 6e1e771 commit 3e7b83f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
6 changes: 5 additions & 1 deletion kraken-app/kraken-app-portal/src/hooks/user/useUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { isEmpty } from "lodash";

export const useUser = () => {
const { data: dataUser, isLoading } = useGetUserList(
{ size: 200, page: 0, filterInternalUser: true },
{
size: 200,
page: 0,
// filterInternalUser: true
},
{ staleTime: 999999 }
);
const { data: currentUser } = useGetCurrentUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
background-color: #fff;
display: flex;
flex: 1;
min-height: 600px;
min-height: 400px;
overflow-y: auto;
}
.overviewContainer {
Expand Down Expand Up @@ -100,3 +100,8 @@
}
}
}

.pageContent {
flex: 1;
overflow-y: auto;
}
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,16 @@ const EnvironmentOverview = () => {
</Radio.Group>
</Flex>

<Suspense fallback={<Spin spinning />}>
{activeTab === "running_api" && selectedEnv && (
<RunningAPIMapping env={selectedEnv} />
)}
{activeTab === "deployment_history" && (
<div style={{ marginTop: -12 }}>
<main className={styles.pageContent}>
<Suspense fallback={<Spin spinning />}>
{activeTab === "running_api" && selectedEnv && (
<RunningAPIMapping env={selectedEnv} />
)}
{activeTab === "deployment_history" && (
<DeployHistory selectedEnv={selectedEnv} />
</div>
)}
</Suspense>
)}
</Suspense>
</main>
</Flex>
)}
<ModalNewDeployment
Expand Down

0 comments on commit 3e7b83f

Please sign in to comment.