Skip to content

Commit

Permalink
fix(Power Flux): Fixes the power flux buttons on the Systems core. Cl…
Browse files Browse the repository at this point in the history
…oses #2741
  • Loading branch information
Alex Anderson committed Feb 11, 2020
1 parent 8118584 commit 912cf0c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/events/systems.js
Expand Up @@ -562,10 +562,7 @@ App.on("fluxSystemPower", ({id, simulatorId, all, type, name}) => {
fluxPower(system);
} else if (simulatorId) {
const systems = App.systems.filter(
s =>
s.simulatorId === simulatorId &&
s.power.powerLevels &&
s.power.powerLevels.length > 0,
s => s.simulatorId === simulatorId && s?.power?.powerLevels?.length > 0,
);
if (!all) {
const sys = randomFromList(systems);
Expand Down

0 comments on commit 912cf0c

Please sign in to comment.