diff --git a/ghost/admin/app/helpers/split-number.js b/ghost/admin/app/helpers/split-number.js index d136c4a832..27c5d0bda7 100644 --- a/ghost/admin/app/helpers/split-number.js +++ b/ghost/admin/app/helpers/split-number.js @@ -3,6 +3,10 @@ import {helper} from '@ember/component/helper'; import {htmlSafe} from '@ember/template'; export function splitNumber([number, previousNumber]) { + if (number === undefined || previousNumber === undefined) { + return 0; + } + let formattedNewNumber = formatNumber(number); let formattedOldNumber = formatNumber(previousNumber);