mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-02-24 03:06:07 -05:00
FE: mixed case on MACs broke node expansion/collapse
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -570,8 +570,8 @@ function getChildren(node, list, path, visited = [])
|
||||
// Loop through all items to find children of the current node
|
||||
for (var i in list) {
|
||||
const item = list[i];
|
||||
const parentMac = item.devParentMAC.toLowerCase() || ""; // null-safe
|
||||
const nodeMac = node.devMac.toLowerCase() || ""; // null-safe
|
||||
const parentMac = item.devParentMAC?.toLowerCase() || ""; // null-safe
|
||||
const nodeMac = node.devMac?.toLowerCase() || ""; // null-safe
|
||||
|
||||
if (parentMac != "" && parentMac == nodeMac && !hiddenMacs.includes(parentMac)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user