Catch undefined var

This commit is contained in:
James Cole
2021-02-05 06:57:12 +01:00
parent 8e42f25a1e
commit b0ac0ea0cf
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: