This commit resolves the issue that arises when a widget contains a reload attribute but lacks a no-preview attribute. That config leads to an "Uncaught Promise" error. With this update, when a reload attribute is detected, the no-preview attribute is now automatically added, preventing the error from occurring. The problem occurs since [1]. Steps to reproduce: - Go to website - Edit - Click on the header - In the navbar options, change the Mobile Alignment option. => Works but traceback anyway. [1]: https://github.com/odoo/odoo/commit/fcb16a3b1bd373726ffb54f0fbe41fb6d1784769 task-3572334 closes odoo/odoo#139909 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>