Skip to content

Commit

Permalink
fix(hp): fix querySelector panic
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Jan 12, 2025
1 parent d53de2f commit 4463c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/luci-static/resources/homeproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ return baseclass.extend({

renderWidget: function(/* ... */) {
var dl = form.DynamicList.prototype.renderWidget.apply(this, arguments);
dl.querySelector('.add-item ul > li[data-value="-"]').remove();
dl.querySelector('.add-item ul > li[data-value="-"]')?.remove();
return dl;
}
}),
Expand Down

0 comments on commit 4463c24

Please sign in to comment.