diff --git a/web/client/epics/__tests__/featuregrid-test.js b/web/client/epics/__tests__/featuregrid-test.js index 82cc164c57..fad283631f 100644 --- a/web/client/epics/__tests__/featuregrid-test.js +++ b/web/client/epics/__tests__/featuregrid-test.js @@ -1987,7 +1987,7 @@ describe('featuregrid Epics', () => { const epicResult = actions => { expect(actions.length).toBe(2); expect(actions[0].type).toBe(HIDE_MAPINFO_MARKER); - expect(actions[1].type).toBe(OPEN_FEATURE_GRID); + expect(actions[1].type).toBe(CLOSE_FEATURE_GRID); done(); }; diff --git a/web/client/epics/featuregrid.js b/web/client/epics/featuregrid.js index d1e4ce265d..16b9a27a94 100644 --- a/web/client/epics/featuregrid.js +++ b/web/client/epics/featuregrid.js @@ -1222,7 +1222,7 @@ export const hideFeatureGridOnDrawerOpenMobile = (action$, { getState } = {}) => && getState().browser.mobile && drawerEnabledControlSelector(getState()) ) - .switchMap(() => Rx.Observable.of(hideMapinfoMarker(), openFeatureGrid())); + .switchMap(() => Rx.Observable.of(hideMapinfoMarker(), closeFeatureGrid())); export const hideDrawerOnFeatureGridOpenMobile = (action$, { getState } = {}) => action$ .ofType(FEATURE_INFO_CLICK)