Catch undefined var

This commit is contained in:
James Cole 2021-02-05 06:57:12 +01:00
parent 8e42f25a1e
commit b0ac0ea0cf
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
3 changed files with 3 additions and 3 deletions

View File

@ -448,7 +448,7 @@ export default {
// show message, redirect.
if (false === this.createAnother) {
window.location.href = window.previousURL + '?transaction_group_id=' + this.groupId + '&message=created';
window.location.href = (window.previousURL ?? '/') + '?transaction_group_id=' + this.groupId + '&message=created';
return;
}
// render msg:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long