kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
fixed reference error on huntedCount
rodzic
66f7ad87b3
commit
ac51710ff3
|
@ -50,7 +50,10 @@ function renderRoster(callRoster, rosterSettings)
|
||||||
|
|
||||||
var totalCount = Object.keys(callRoster).length;
|
var totalCount = Object.keys(callRoster).length;
|
||||||
var visibleCount = visibleCallList.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 = [];
|
var countParts = [];
|
||||||
|
|
||||||
if (totalCount != visibleCount)
|
if (totalCount != visibleCount)
|
||||||
|
|
Ładowanie…
Reference in New Issue