Skip to content

Commit

Permalink
added empty state fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
aatbip committed Feb 5, 2024
1 parent 3a5e5b0 commit 5804da2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/manage/views/ManagePageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { MultiSelect } from '@/components/multiSelect/MultiSelect';
import { StyledTextInput } from '@/components/styled/StyledTextInput';
import { Stack, Typography, styled } from '@mui/material';
import { useMemo, useState } from 'react';
import { EmptyStateFallback } from './EmptyStateFallback';

export const ManagePageContainer = ({
customFieldAccess,
Expand Down Expand Up @@ -107,6 +108,10 @@ export const ManagePageContainer = ({
setLoading(false);
};

if (allowedCustomField.length === 0 || !allowedCustomField) {
return <EmptyStateFallback />;
}

return (
<>
<Stack
Expand Down

0 comments on commit 5804da2

Please sign in to comment.