@@ -143,8 +143,8 @@ export function Component() {
143143 ordering,
144144 atype : filterAppealType ,
145145 dtype : filterDisasterType ,
146- country : isDefined ( filterCountry ) ? [ filterCountry ] : undefined ,
147- region : isDefined ( filterRegion ) ? [ filterRegion ] : undefined ,
146+ country : isDefined ( filterCountry ) ? filterCountry : undefined ,
147+ region : isDefined ( filterRegion ) ? filterRegion : undefined ,
148148 start_date__gte : filter . startDateAfter ,
149149 start_date__lte : filter . startDateBefore ,
150150 } ) ,
@@ -170,7 +170,7 @@ export function Component() {
170170
171171 const columns = useMemo (
172172 ( ) => ( [
173- createDateColumn < AppealListItem , string > (
173+ createDateColumn < AppealListItem , number > (
174174 'start_date' ,
175175 strings . allAppealsStartDate ,
176176 ( item ) => item . start_date ,
@@ -179,7 +179,7 @@ export function Component() {
179179 columnClassName : styles . startDate ,
180180 } ,
181181 ) ,
182- createStringColumn < AppealListItem , string > (
182+ createStringColumn < AppealListItem , number > (
183183 'atype' ,
184184 strings . allAppealsType ,
185185 ( item ) => item . atype_display ,
@@ -188,15 +188,15 @@ export function Component() {
188188 columnClassName : styles . appealType ,
189189 } ,
190190 ) ,
191- createStringColumn < AppealListItem , string > (
191+ createStringColumn < AppealListItem , number > (
192192 'code' ,
193193 strings . allAppealsCode ,
194194 ( item ) => item . code ,
195195 {
196196 columnClassName : styles . code ,
197197 } ,
198198 ) ,
199- createLinkColumn < AppealListItem , string > (
199+ createLinkColumn < AppealListItem , number > (
200200 'operation' ,
201201 strings . allAppealsOperation ,
202202 ( item ) => item . name ,
@@ -206,12 +206,12 @@ export function Component() {
206206 } ) ,
207207 { sortable : true } ,
208208 ) ,
209- createStringColumn < AppealListItem , string > (
209+ createStringColumn < AppealListItem , number > (
210210 'dtype' ,
211211 strings . allAppealsDisasterType ,
212212 ( item ) => item . dtype ?. name ,
213213 ) ,
214- createNumberColumn < AppealListItem , string > (
214+ createNumberColumn < AppealListItem , number > (
215215 'amount_requested' ,
216216 strings . allAppealsRequestedAmount ,
217217 ( item ) => item . amount_requested ,
@@ -220,7 +220,7 @@ export function Component() {
220220 suffix : ' CHF' ,
221221 } ,
222222 ) ,
223- createProgressColumn < AppealListItem , string > (
223+ createProgressColumn < AppealListItem , number > (
224224 'amount_funded' ,
225225 strings . allAppealsFundedAmount ,
226226 // FIXME: use progress function
@@ -235,7 +235,7 @@ export function Component() {
235235 columnClassName : styles . funding ,
236236 } ,
237237 ) ,
238- createLinkColumn < AppealListItem , string > (
238+ createLinkColumn < AppealListItem , number > (
239239 'country' ,
240240 strings . allAppealsCountry ,
241241 ( item ) => item . country ?. name ,
0 commit comments