mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed limit error parsing when there are no details
refs https://github.com/TryGhost/Team/issues/913 - Some limit errors don't contain a "details" property, in those cases the code should still execute instead of throwing an errors!
This commit is contained in:
parent
a6f88746e6
commit
2c52fab9ae
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ export default ModalComponent.extend({
|
|||
router: service(),
|
||||
|
||||
upgradeMessage: computed('details', function () {
|
||||
const {limit, total} = this.model.details;
|
||||
const {limit, total} = this.model.details || {};
|
||||
const message = this.model.message;
|
||||
|
||||
return {limit, total, message};
|
||||
|
|
Loading…
Add table
Reference in a new issue