From fedb40d517798ac9af285af79a971494082a0b67 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 28 Feb 2024 15:51:22 -0700 Subject: [PATCH] add loading indicator --- src/pages/workspace/categories/WorkspaceCategoriesPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) 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 (