Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aatbip committed Feb 5, 2024
1 parent 5804da2 commit abdf684
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/manage/views/ManagePageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const ManagePageContainer = ({
useMemo(() => {
if (_customFieldAccess.length > 0) {
const allowedFields = _customFieldAccess.filter((field: any) => field.permission?.length > 0);
console.log(allowedFields);
const getSelectedValuesForMultiSelect = (key: string) => {
const values = customFieldsValue[key];
if (!values) {
Expand Down Expand Up @@ -108,7 +107,7 @@ export const ManagePageContainer = ({
setLoading(false);
};

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

Expand Down

0 comments on commit abdf684

Please sign in to comment.