fixed reference error on huntedCount

merge-requests/150/merge
Christian Bayer 2021-10-24 20:56:21 -04:00 zatwierdzone przez Matthew Chambers
rodzic 66f7ad87b3
commit ac51710ff3
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -50,7 +50,10 @@ function renderRoster(callRoster, rosterSettings)
var totalCount = Object.keys(callRoster).length;
var visibleCount = visibleCallList.length;
var huntedCount = visibleCallList.filter(obj => Object.keys(obj.callObj.hunting).length > 0).length
var huntedCount = 0;
if (typeof(obj) !== 'undefined' && typeof(obj.callObj) !==' undefined' && typeof(obj.callObj.hunting) !== 'undefined')
huntedCount = visibleCallList.filter(obj => Object.keys().length > 0).length
var countParts = [];
if (totalCount != visibleCount)