From 0d3a6e6d570374b46d3348a8953795452ef79aae Mon Sep 17 00:00:00 2001 From: Alex Anderson Date: Fri, 31 Jan 2020 21:07:49 -0700 Subject: [PATCH] fix(Server): Fixes an issue where the server crashes regularly. Closes #2735 --- server/processes/reactor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/processes/reactor.js b/server/processes/reactor.js index 00cf67b93..a4d5006f8 100644 --- a/server/processes/reactor.js +++ b/server/processes/reactor.js @@ -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