Commit bdd4abad authored by Andrew Fontaine's avatar Andrew Fontaine Committed by David O'Regan

Fix error on environment rollback

While the rollback was still completed successfully, there was
previously an extra alert showing when rolling an environment back to a
previous deployment via the deployments page. This ensures that the
error is not seen, by stopping an error being thrown for missing the
retry path after the rollback occurs.

Changelog: fixed
parent e1d2685e
......@@ -15,7 +15,6 @@ export default {
data() {
return {
environment: null,
retryPath: '',
visible: false,
};
},
......@@ -35,9 +34,9 @@ export default {
name: environmentName,
commitShortSha,
commitUrl,
retryUrl: retryPath,
isLastDeployment: parseBoolean(isLastDeployment),
};
this.retryPath = retryPath;
this.visible = true;
});
});
......@@ -51,7 +50,5 @@ export default {
v-model="visible"
:environment="environment"
:has-multiple-commits="false"
:retry-url="retryPath"
/>
<div v-else></div>
</template>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment