[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:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user