fix: check for null when running in docker or non pi (#428)
This commit is contained in:
@@ -89,7 +89,7 @@ export const getters: GetterTree<ServerState, any> = {
|
||||
let tempSensor = rootGetters['printer/getHostTempSensor']
|
||||
if (tempSensor === null) {
|
||||
tempSensor = {
|
||||
temperature: state.cpu_temp.toFixed(0),
|
||||
temperature: state.cpu_temp?.toFixed(0),
|
||||
measured_min_temp: null,
|
||||
measured_max_temp: null
|
||||
}
|
||||
|
Reference in New Issue
Block a user