Merge branch 'master' into jori/prevent-saving-empty

This commit is contained in:
Jori Lallo
2017-07-18 23:47:22 -07:00
committed by GitHub
10 changed files with 125 additions and 62 deletions

View File

@@ -26,7 +26,9 @@ class Collection {
/* Computed */
@computed get entryUrl(): string {
return this.type === 'atlas' ? this.documents[0].url : this.url;
return this.type === 'atlas' && this.documents.length > 0
? this.documents[0].url
: this.url;
}
/* Actions */