Skip to content

Commit

Permalink
fix(Server): Fixes an issue where the server crashes regularly. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Anderson committed Feb 1, 2020
1 parent 2971cf7 commit 0d3a6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/processes/reactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const updateReactor = () => {
const simId = sim.id;
let oldLevel = App.systems
.filter(s => s.simulatorId === simId)
.filter(s => s.power.power)
.filter(s => s?.power?.power)
.reduce((prev, sys) => {
return sys.power.powerLevels.length > 0
? prev + sys.power.power
Expand Down

0 comments on commit 0d3a6e6

Please sign in to comment.