Skip to content

Commit

Permalink
Merge pull request #38849 from GandalfGwaihir/issue37904
Browse files Browse the repository at this point in the history
[FIX]: Workspace - Categories load without loading spinner
  • Loading branch information
luacmartins authored Mar 22, 2024
2 parents 2caf070 + adc26ae commit 51e2cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function WorkspaceCategoriesPage({policy, policyCategories, route}: WorkspaceCat
subtitle={translate('workspace.categories.emptyCategories.subtitle')}
/>
)}
{!shouldShowEmptyState && (
{!shouldShowEmptyState && !isLoading && (
<SelectionList
canSelectMultiple
sections={[{data: categoryList, indexOffset: 0, isDisabled: false}]}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/tags/WorkspaceTagsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function WorkspaceTagsPage({policyTags, route}: WorkspaceTagsPageProps) {
subtitle={translate('workspace.tags.emptyTags.subtitle')}
/>
)}
{tagList.length > 0 && (
{tagList.length > 0 && !isLoading && (
<SelectionList
canSelectMultiple
sections={[{data: tagList, indexOffset: 0, isDisabled: false}]}
Expand Down

0 comments on commit 51e2cf2

Please sign in to comment.