File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const data = loadAndProcessData('src/ndx.csv');
1313const adaptor = creatAdapter ( data ) ;
1414
1515app . post ( '/api/stock' , ( req , res ) => {
16- adaptor . filterStorage . restore ( req . body ) ;
16+ adaptor . filterStorage . restore ( req . body . filters ) ;
1717 console . log ( `${ adaptor . groupAll . value ( ) } of ${ adaptor . cf . size ( ) } ` ) ;
1818 const result = adaptor . computeChartData ( ) ;
1919 res . json ( result ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class RemoteDataSource {
4545 'Content-Type' : 'application/json' ,
4646 } ,
4747 redirect : 'follow' ,
48- body : JSON . stringify ( serializedFilters ) ,
48+ body : JSON . stringify ( { filters : serializedFilters } ) ,
4949 } ) ;
5050 const txtBody = await response . text ( ) ;
5151 return JSON . parse ( txtBody , dateTimeReviver ) ;
You can’t perform that action at this time.
0 commit comments