Skip to content

Commit

Permalink
fix: 🐛 fix resource tab error when no resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauline Didier committed Dec 5, 2024
1 parent 1a5f357 commit 5322b4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions app/src/components/model/panels/left/ResourceFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ function toggleGroupBy(groupBy, setGroupBy, value) {
export function ResourceFilter({
groupBy,
setGroupBy,
isLoading,
searchInput,
setSearchInput,
}) {
if (isLoading) {
return null;
}
return (
<Box
sx={{
Expand Down
3 changes: 1 addition & 2 deletions app/src/components/model/panels/left/ResourceTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ export function ResourceTab() {
padding: "1em",
}}
>
{resources.length > 0 && !isError && (
{!isLoading && !isError && resources?.length > 0 && (
<ResourceFilter
isLoading={isLoading}
groupBy={groupBy}
setGroupBy={setGroupBy}
searchInput={searchInput}
Expand Down

0 comments on commit 5322b4d

Please sign in to comment.