Skip to content

Commit

Permalink
[FIX] web_m2x_options: Error if not web_m2x_options set on session
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosRoca13 committed Aug 14, 2024
1 parent 1c6d9cd commit c3acb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_m2x_options/static/src/components/form.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c3acb6e

Please sign in to comment.