Address: improve forceRedirect condition, if backUrl is null or undefined

This commit is contained in:
Mathieu Jaumotte 2021-09-22 18:40:40 +02:00
parent 47d0043462
commit 4768785bb5
2 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ export default {
return !this.context.edit && !this.inModal;
},
forceRedirect() {
return this.context.backUrl !== null;
return (!(this.context.backUrl === null || typeof this.context.backUrl === 'undefined'));
}
},
mounted() {

View File

@ -86,7 +86,7 @@ export default {
this.options.hideAddress : this.defaultz.hideAddress;
},
forceRedirect() {
return this.context.backUrl !== null;
return (!(this.context.backUrl === null || typeof this.context.backUrl === 'undefined'));
},
noAddressWithStickyActions() {
return !this.context.edit && !this.address.id && this.options.stickyActions;