Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
selected version gets applied
Browse files Browse the repository at this point in the history
  • Loading branch information
debsmita1 committed Jun 19, 2019
1 parent 7c670ac commit 04bf02f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Expand Down

0 comments on commit 04bf02f

Please sign in to comment.