[FIX] website: fix google map snippet traceback

before this commit, when selectioning the snippet with an invalid API
key, a traceback was triggered and the snippet was destroyed.

task-2338730

closes odoo/odoo#57689

X-original-commit: 2c5b0c6b915546ccdac2ed4248f24a4e691fadd1
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Thanh Dodeur
2020-09-14 17:22:18 +00:00
parent 30f5c32372
commit dacd69c549
@@ -316,7 +316,9 @@ const GPSPicker = InputUserValueWidget.extend({
}
});
});
this.inputEl.value = this._gmapPlace.formatted_address;
if (this._gmapPlace) {
this.inputEl.value = this._gmapPlace.formatted_address;
}
},
//--------------------------------------------------------------------------