Skip to content
Snippets Groups Projects
Commit 5943ce5b authored by Xiao Gui's avatar Xiao Gui
Browse files

fixes #81

parent fe447d3f
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,19 @@ export interface SpatialDataEntries extends Action
visible? : boolean
}
export function spatialSearchState(state:any,action:SpatialDataEntries){
export interface SpatialDataStateInterface{
spatialSearchPagination : number
spatialSearchTotalResults : number
spatialDataVisible : boolean
}
const initSpatialDataState : SpatialDataStateInterface = {
spatialDataVisible : false,
spatialSearchPagination : 0,
spatialSearchTotalResults : 0
}
export function spatialSearchState(state:SpatialDataStateInterface = initSpatialDataState, action:SpatialDataEntries){
switch (action.type){
case SPATIAL_GOTO_PAGE:
return Object.assign({},state,{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment