import { Filter , FILTERS } from '../../../../../common' ; export const mapSpatialFilter = ( filter ) => { if ( filter . meta && filter . meta . key && filter . meta . alias && filter . meta . type === FILTERS . SPATIAL_FILTER ) { return { key : filter . meta . key , type : filter . meta . type , value : '' , } ; } throw filter ; } ;