Skip to content

Commit

Permalink
fix(landing): fix most_active_iface
Browse files Browse the repository at this point in the history
Fix #378
  • Loading branch information
selankon committed Mar 11, 2024
1 parent b9fbede commit 0280efa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/lime-plugin-rx/src/rxPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,16 @@ const SystemBox = ({ uptime, firmwareVersion, boardModel }) => {
};

const MostActiveBox = ({ node, changeNode }) => {
const use_most_active =
node.most_active?.station_mac || node.most_active?.length > 0;
const { data: bathost } = useBatHost(
node.most_active && node.most_active.station_mac,
node.most_active && node.most_active.iface,
node.most_active?.station_mac,
node.most_active?.iface,
{ enabled: !!node.most_active }
);

if (node.most_active === undefined) {
if (!use_most_active) {
console.log("SPAN");
return <span />;
}

Expand Down

0 comments on commit 0280efa

Please sign in to comment.