mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:27:07 +00:00
Protect against events without payload.
These will eventually arrive when we stop ignoring events > 8 KiB.
This commit is contained in:
@@ -299,7 +299,7 @@ export default {
|
||||
},
|
||||
|
||||
serverEvent (event) {
|
||||
if (event.channel == "realtime") {
|
||||
if (event.channel == "realtime" && event.payload && event.payload.new) {
|
||||
const rtLayer = layers["Real-time"];
|
||||
if (rtLayer.isRunning()) {
|
||||
const geojson = {
|
||||
|
||||
Reference in New Issue
Block a user