Skip to content

Commit bc6b959

Browse files
authored
Fix : add build status default value in buildStatusChip (#3178)
Signed-off-by: Ayoub LABIDI <[email protected]>
1 parent cfdc0af commit bc6b959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/graph/nodes/build-status-chip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ type BuildStatusChipProps = {
5959
onClick?: (e: React.MouseEvent) => void;
6060
};
6161

62-
const BuildStatusChip = ({ buildStatus, sx, icon, onClick }: BuildStatusChipProps) => {
62+
const BuildStatusChip = ({ buildStatus = BUILD_STATUS.NOT_BUILT, sx, icon, onClick }: BuildStatusChipProps) => {
6363
const intl = useIntl();
6464

65-
const label = buildStatus ? intl.formatMessage({ id: buildStatus }) : '';
65+
const label = intl.formatMessage({ id: buildStatus });
6666

6767
return (
6868
<Chip

0 commit comments

Comments
 (0)