Commit fb359808 authored by Filipa Lacerda's avatar Filipa Lacerda

Verify `latest` key is present when needed

parent 991a7ae8
......@@ -355,6 +355,18 @@ module.exports = Vue.component('environment-item', {
!this.$options.isObjectEmpty(this.model.latest.last_deployment.deployable);
},
buildPath(){
return this.model.latest &&
this.model.latest.last_deployment &&
this.model.latest.last_deployment.deployable &&
this.model.latest.last_deployment.deployable.build_path ||
'';
},
externalURL() {
return this.model.latest && this.model.latest.external_url || '';
},
/**
* Verifies the presence of all the keys needed to render the buil_path.
*
......
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