diff --git a/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx b/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx index 48ecb219fc..2c2b97a2d3 100644 --- a/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx +++ b/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx @@ -28,7 +28,7 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell'; export const ApiTokenTable = () => { - const { tokens } = useApiTokens(); + const { tokens, loading } = useApiTokens(); const hiddenColumns = useHiddenColumns(); const initialState = useMemo(() => ({ sortBy: [{ id: 'createdAt' }] }), []); @@ -69,10 +69,6 @@ export const ApiTokenTable = () => { ); - if (!tokens.length) { - return null; - } - return ( { 0}