Skip to content

Commit 5322b4d

Browse files
author
Pauline Didier
committed
fix: 🐛 fix resource tab error when no resources
1 parent 1a5f357 commit 5322b4d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

app/src/components/model/panels/left/ResourceFilter.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@ function toggleGroupBy(groupBy, setGroupBy, value) {
1919
export function ResourceFilter({
2020
groupBy,
2121
setGroupBy,
22-
isLoading,
2322
searchInput,
2423
setSearchInput,
2524
}) {
26-
if (isLoading) {
27-
return null;
28-
}
2925
return (
3026
<Box
3127
sx={{

app/src/components/model/panels/left/ResourceTab.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export function ResourceTab() {
2929
padding: "1em",
3030
}}
3131
>
32-
{resources.length > 0 && !isError && (
32+
{!isLoading && !isError && resources?.length > 0 && (
3333
<ResourceFilter
34-
isLoading={isLoading}
3534
groupBy={groupBy}
3635
setGroupBy={setGroupBy}
3736
searchInput={searchInput}

0 commit comments

Comments
 (0)