From c3acb6e641e63e3e1626d41c0f50148593ac84b2 Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Wed, 14 Aug 2024 07:06:28 +0200 Subject: [PATCH] [FIX] web_m2x_options: Error if not web_m2x_options set on session --- web_m2x_options/static/src/components/form.esm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_m2x_options/static/src/components/form.esm.js b/web_m2x_options/static/src/components/form.esm.js index 51c3c69ac..b18ba530e 100644 --- a/web_m2x_options/static/src/components/form.esm.js +++ b/web_m2x_options/static/src/components/form.esm.js @@ -325,7 +325,7 @@ patch(FormController.prototype, { * add more method to add subview limit on formview */ async _setSubViewLimit() { - const ir_options = session.web_m2x_options; + const ir_options = session.web_m2x_options || {}; const activeFields = this.archInfo.fieldNodes, isSmall = this.user;