File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
components/TimeSeriesDialog Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,12 @@ export const DownloadForm = props => {
5757 } ;
5858
5959 const pushUserData = ( ) => {
60- let sname = api . pushUserData (
61- data . current . series [ 0 ] . info . coverage_identifier
62- ? data . current . series [ 0 ] . info . coverage_identifier
63- : data . current . series [ 0 ] . info . series_identifier ,
64- {
65- ...userData ,
66- ...{ coords : data . current . series [ 0 ] . info . location } ,
67- } ,
68- ) ;
60+ let coverage_identifier = localStorage . getItem ( 'coverage_identifier' ) ;
61+
62+ let sname = api . pushUserData ( coverage_identifier , {
63+ ...userData ,
64+ ...{ coords : data . current . series [ 0 ] . info . location } ,
65+ } ) ;
6966 } ;
7067
7168 const refreshSeriesObject =
Original file line number Diff line number Diff line change @@ -460,6 +460,7 @@ export function MapPage(props: MapPageProps) {
460460 }
461461
462462 useEffect ( ( ) => {
463+ localStorage . setItem ( 'coverage_identifier' , currentLayer ) ;
463464 if ( currentLayer . length > 0 && selectedPoint ) {
464465 const lsp = new URLSearchParams ( window . location . search ) ;
465466 setSearchParams ( {
You can’t perform that action at this time.
0 commit comments