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