File tree Expand file tree Collapse file tree
app/src/views/ActiveSurgeDeployments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ import {
5454
5555import i18n from './i18n.json' ;
5656import styles from './styles.module.css' ;
57+ import { MAX_PAGE_LIMIT } from '#utils/constants' ;
5758
5859const sourceOptions : mapboxgl . GeoJSONSourceRaw = {
5960 type : 'geojson' ,
@@ -73,6 +74,13 @@ interface Props {
7374 className ?: string ;
7475}
7576
77+ interface NameOutputProps {
78+ name : string ;
79+ }
80+ function NameOutput ( { name } : NameOutputProps ) {
81+ return name ;
82+ }
83+
7684function SurgeMap ( props : Props ) {
7785 const {
7886 className,
@@ -103,7 +111,7 @@ function SurgeMap(props: Props) {
103111 query : {
104112 deployed_to__isnull : false ,
105113 disaster_type : disasterFilter ,
106- limit : 9999 ,
114+ limit : MAX_PAGE_LIMIT ,
107115 } ,
108116 } ) ;
109117
@@ -115,7 +123,7 @@ function SurgeMap(props: Props) {
115123 end_date__gt : now ,
116124 is_active : true ,
117125 dtype : disasterFilter ,
118- limit : 9999 ,
126+ limit : MAX_PAGE_LIMIT ,
119127 } ,
120128 } ) ;
121129
@@ -425,13 +433,13 @@ function SurgeMap(props: Props) {
425433 labelClassName = { styles . label }
426434 value = { (
427435 < ReducedListDisplay
428- list = { event . eruType }
436+ list = { event . roleProfile }
429437 keySelector = { stringNameSelector }
430438 renderer = { DisplayName }
431439 rendererParams = { rendererParams }
432440 />
433441 ) }
434- label = { strings . eruType }
442+ label = { strings . roleProfile }
435443 strongLabel
436444 />
437445 < TextOutput
Original file line number Diff line number Diff line change 1+ {
2+ "namespace" : " activeSurgeDeployments" ,
3+ "strings" : {
4+ "activeSurgeDeploymentsPageTitle" : " Active Surge Deployments"
5+ }
6+ }
You can’t perform that action at this time.
0 commit comments