[FIX] web_editor: do not update the options when destroying them
Since [this commit] it is visible that there is a race condition in the editor. The race condition was caused by a call for an update of the option visibility during the save, but the options may be in the destruction process. This commit prevents the visibility of the options from being updated when the option destruction process begins. Steps to reproduce the bug fixed by this commit: - Drop 2 times the image - text block on a page - Drop a popup block - Save => During the save, a traceback occurs. [this commit]: https://github.com/odoo/odoo/commit/686e011f9b54bcfe93cc22db24435d2ca9213664 Related to opw-2971181 Part-of: odoo/odoo#103783
Loading