Skip to content

Commit

Permalink
Merge pull request #990 from ibi-group/fix-feedsource-table
Browse files Browse the repository at this point in the history
Reinstate "Same as Deployed" label
  • Loading branch information
miles-grant-ibigroup authored Oct 9, 2023
2 parents 7fb1d89 + 1759753 commit 314cc70
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/manager/components/FeedSourceTableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,10 @@ export default class FeedSourceTableRow extends PureComponent<Props> {

// data for latest validation columns
const currentVersionData = this.getVersionDisplayData(feedSource.latestValidation)
const latestVersionId = feedSource.latestValidation && feedSource.latestValidation.feedVersionId
const comparisonVersionId = comparisonValidationSummary && comparisonValidationSummary.feedVersionId

if (
feedSource.latestVersionId &&
comparisonValidationSummary &&
feedSource.latestVersionId === comparisonValidationSummary.feedVersionId
) {
if (latestVersionId && latestVersionId === comparisonVersionId) {
currentVersionData.status = comparisonColumn === 'DEPLOYED'
? 'same-as-deployed'
: 'same-as-published'
Expand Down

0 comments on commit 314cc70

Please sign in to comment.