diff --git a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx index b047d052599b..90aab254d3a1 100644 --- a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx +++ b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx @@ -26,6 +26,7 @@ import ROUTES from '@src/ROUTES'; import type SCREENS from '@src/SCREENS'; import type * as OnyxTypes from '@src/types/onyx'; import * as Policy from '@userActions/Policy'; +import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; type PolicyForList = { value: string; @@ -111,6 +112,10 @@ function WorkspaceCategoriesPage({policyCategories, route}: WorkspaceCategoriesP ); + if (policyCategories === undefined) { + return ; + } + return (