Skip to content

Commit

Permalink
fix(docker): Stop losing manually defined imageId (#7037)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmquach authored and anotherchrisberry committed May 21, 2019
1 parent 43fb8a0 commit bd7c5b6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,12 @@ export class DockerImageAndTagSelector extends React.Component<
}
newState.switchedManualWarning = `Could not find ${missingFields.join(' or ')}, switched to manual entry`;
} else if (!imageId || !imageId.includes('${')) {
this.synchronizeChanges({ organization, repository, tag, digest: this.props.digest }, registry);
this.synchronizeChanges(
this.state.defineManually
? DockerImageUtils.splitImageId(imageId)
: { organization, repository, tag, digest: this.props.digest },
registry,
);
}

this.setState(newState);
Expand Down

0 comments on commit bd7c5b6

Please sign in to comment.