diff --git a/website/src/components/lifeCycle/index.js b/website/src/components/lifeCycle/index.js index d4e4eab88d8..d8abc142162 100644 --- a/website/src/components/lifeCycle/index.js +++ b/website/src/components/lifeCycle/index.js @@ -19,11 +19,10 @@ const fontColors = { }; export default function Lifecycle(props) { - if (!props.status || (Array.isArray(props.status) && props.status.length === 0)) { + const statuses = props.status?.split(',') + if (!props.status || !statuses?.length) { return null; } - // Check if props.status is an array or a single value - const statuses = Array.isArray(props.status) ? props.status : [props.status]; return ( <>