0
Fork 0
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:
Naz 2021-07-28 14:27:03 +04:00
parent a6f88746e6
commit 2c52fab9ae

View file

@ -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};