Skip to content

Commit

Permalink
bugfix(app overview): api failing component appears with 'no data ava…
Browse files Browse the repository at this point in the history
…ilable' and with error bar (#395)
  • Loading branch information
lavanya-bmw authored Dec 5, 2023
1 parent 82c8e29 commit 61e0a0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
- Enable prefer-reduce-type-parameter rule
- Enable prefer-readonly rule
- Enable triple-slash-reference rule
- App overview
- api failing component appears with "no data available" and with error bar


## 1.7.0-RC4

Expand Down
17 changes: 9 additions & 8 deletions src/components/pages/AppOverview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,15 @@ export default function AppOverview() {
showButton={true}
/>
)}
{filterItem && filterItem.length > 0 && isSuccess ? (
<AppOverviewList
filterItem={filterItem}
showOverlay={showOverlay}
/>
) : (
<NoItems />
)}
{isSuccess &&
(filterItem && filterItem.length > 0 ? (
<AppOverviewList
filterItem={filterItem}
showOverlay={showOverlay}
/>
) : (
<NoItems />
))}
</>
)}
</div>
Expand Down

0 comments on commit 61e0a0b

Please sign in to comment.