fix: view.websocket (object length fixes '/event' notification count)
This commit is contained in:
parent
97c6dcf8be
commit
bdf119700c
|
@ -98,7 +98,7 @@ window.wsc_event = wsc.channel('event/31').listen(function(msg, err){
|
||||||
|
|
||||||
// {3} Add notification count if not already on page //
|
// {3} Add notification count if not already on page //
|
||||||
if( router.app.$route.path != '/event' )
|
if( router.app.$route.path != '/event' )
|
||||||
gstore.data.notif.event.count += msg.add.length;
|
gstore.data.notif.event.count += Object.keys(msg.add).length;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue