mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix delete-all action on config node sidebar
This commit is contained in:
parent
eed3a749db
commit
6f08bd6fc5
@ -257,7 +257,7 @@ RED.sidebar.config = (function() {
|
|||||||
RED.actions.add("core:delete-config-selection", function() {
|
RED.actions.add("core:delete-config-selection", function() {
|
||||||
var selectedNodes = [];
|
var selectedNodes = [];
|
||||||
$(content).find(".red-ui-palette-node.selected").each(function() {
|
$(content).find(".red-ui-palette-node.selected").each(function() {
|
||||||
selectedNodes.push($(this).data('node'));
|
selectedNodes.push($(this).parent().data('node'));
|
||||||
});
|
});
|
||||||
if (selectedNodes.length > 0) {
|
if (selectedNodes.length > 0) {
|
||||||
var historyEvent = {
|
var historyEvent = {
|
||||||
|
Loading…
Reference in New Issue
Block a user