Merge pull request 'release: 불법어선 필터 수정' (#107) from develop into main
All checks were successful
Deploy KCG / deploy (push) Successful in 1m53s
All checks were successful
Deploy KCG / deploy (push) Successful in 1m53s
This commit is contained in:
커밋
d09b8de765
@ -307,8 +307,11 @@ export function useKoreaFilters(
|
||||
if (!anyFilterOn) return visibleShips;
|
||||
return visibleShips.filter(s => {
|
||||
const mtCat = getMarineTrafficCategory(s.typecode, s.category);
|
||||
if (filters.illegalFishing && mtCat === 'fishing' && s.flag !== 'KR') return true;
|
||||
if (filters.illegalFishing && (analysisMap?.get(s.mmsi)?.algorithms.riskScore.level === 'CRITICAL' || analysisMap?.get(s.mmsi)?.algorithms.riskScore.level === 'HIGH')) return true;
|
||||
if (filters.illegalFishing) {
|
||||
if (mtCat === 'fishing' && s.flag !== 'KR') return true;
|
||||
const riskLevel = analysisMap?.get(s.mmsi)?.algorithms.riskScore.level;
|
||||
if (mtCat === 'fishing' && (riskLevel === 'CRITICAL' || riskLevel === 'HIGH')) return true;
|
||||
}
|
||||
if (filters.illegalTransship && transshipSuspects.has(s.mmsi)) return true;
|
||||
if (filters.darkVessel && darkVesselSet.has(s.mmsi)) return true;
|
||||
if (filters.cableWatch && cableWatchSet.has(s.mmsi)) return true;
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user