Skip to content

Commit

Permalink
fix: Fixed JS bug (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com>
  • Loading branch information
Krithika3 committed Aug 23, 2022
1 parent 24a16a0 commit 7fe40c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/src/components/pods/Pods.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,13 @@ export function Pods(props: PodsProps) {
);
}

if (podsError || podsDetailError || !podsDetailMap) {
if (podsError || pods.length === 0 || podsDetailError || !podsDetailMap) {
const errors = [];

if (pods.length === 0) {
errors.push(<Box key = {"no pods"}>{`No pods found`}</Box>);
}

if (podsError) {
errors.push(
<Box
Expand Down

0 comments on commit 7fe40c4

Please sign in to comment.