diff --git a/frontend/public/extend/devconsole/components/source-to-image/SourceToImage.tsx b/frontend/public/extend/devconsole/components/source-to-image/SourceToImage.tsx index 1782c108c18..870a0e3a9be 100644 --- a/frontend/public/extend/devconsole/components/source-to-image/SourceToImage.tsx +++ b/frontend/public/extend/devconsole/components/source-to-image/SourceToImage.tsx @@ -68,7 +68,7 @@ class BuildSource extends React.Component< const tags = getBuilderTagsSortedByVersion(props.obj.data); // Select the first tag if the current tag is missing or empty. const selectedTag = - previousTag && _.includes(tags, previousTag) ? previousTag : _.get(_.head(tags), 'name'); + previousTag && _.find(tags, {name:previousTag}) ? previousTag : _.get(_.head(tags), 'name'); return { tags, selectedTag }; }