Skip to content

Commit

Permalink
[fix] Fix object and config menu not opening in Device config editor #…
Browse files Browse the repository at this point in the history
…910

This addresses the problem, that the drop-down for Configuration Menu
and Object Properties are not shown anymore in the device config
editor, if a configuration section is saved, which has in its JSON
schema definition a property with type array and should have unique
items. The cause of the problem is a call to super, when there is no
super. This commit will fix this issue by removing the call to super,
because it is not needed in this special case neither in all other
cases.

Fixes #910

Signed-off-by: Konrad Kreitmair <[email protected]>
  • Loading branch information
kkreitmair authored and nemesifier committed Sep 5, 2024
1 parent eb1d72f commit 2302509
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion openwisp_controller/config/static/config/js/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,6 @@ JSONEditor.defaults.editors.multiselect.prototype.disable = function () {
// Modified code begins
if (this.select2) {
this.select2.disabled = true;
this._super();
// Modified code ends
}
};

0 comments on commit 2302509

Please sign in to comment.