Update src/widgets/wgeasy/proxy.js

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
pull/3476/head
Conner Hnatiuk 3 weeks ago committed by GitHub
parent 2ae0105d52
commit 0dba883641
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -64,11 +64,7 @@ export default async function wgeasyProxyHandler(req, res) {
);
const dataParsed = JSON.parse(data);
if (widget.threshold) {
dataParsed.push({ threshold: widget.threshold });
} else {
dataParsed.push({ threshold: 2 });
}
dataParsed.push({ threshold: widget.threshold ?? 2 });
return res.send(dataParsed);
}

Loading…
Cancel
Save