Skip to content

Commit

Permalink
Fixed showing of deleted favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Sep 9, 2024
1 parent e57638f commit 85ac55a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/app-list-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
Button,
CircularProgress,
Icon,
Tooltip,
Typography,
} from '@equinor/eds-core-react';
import { star_filled, star_outlined } from '@equinor/eds-icons';
import { error_outlined, star_filled, star_outlined } from '@equinor/eds-icons';
import { clsx } from 'clsx';
import { formatDistanceToNow } from 'date-fns';
import * as PropTypes from 'prop-types';
Expand Down Expand Up @@ -143,7 +144,7 @@ const AppItemStatus: FunctionComponent<ApplicationSummary> = ({
)}
</AsyncResource>

{(environmentActiveComponents || latestJob) && (
{environmentActiveComponents || latestJob ? (
<EnvironmentCardStatus
title="Application status"
statusElements={{
Expand All @@ -165,6 +166,10 @@ const AppItemStatus: FunctionComponent<ApplicationSummary> = ({
}),
}}
/>
) : (
<Tooltip title="This application does not exist or it is not yet deployed">
<Icon data={error_outlined} />
</Tooltip>
)}
</div>
</div>
Expand Down

0 comments on commit 85ac55a

Please sign in to comment.