From db7b4e381e26db9590259d1d5994bec49da2f6b5 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 10 Nov 2021 15:20:57 +0100 Subject: [PATCH] Show registered context menu items for both browser and localhost --- libs/remix-ui/workspace/src/lib/reducers/workspace.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts index b92d7b041e..3839d89dbc 100644 --- a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts @@ -504,11 +504,11 @@ export const browserReducer = (state = browserInitialState, action: Action) => { ...state, browser: { ...state.browser, - contextMenu: state.mode === 'browser' ? addContextMenuItem(state, payload) : state.browser.contextMenu + contextMenu: addContextMenuItem(state, payload) }, localhost: { ...state.localhost, - contextMenu: state.mode === 'localhost' ? addContextMenuItem(state, payload) : state.localhost.contextMenu + contextMenu: addContextMenuItem(state, payload) } } } @@ -520,11 +520,11 @@ export const browserReducer = (state = browserInitialState, action: Action) => { ...state, browser: { ...state.browser, - contextMenu: state.mode === 'browser' ? removeContextMenuItem(state, payload) : state.browser.contextMenu + contextMenu: removeContextMenuItem(state, payload) }, localhost: { ...state.localhost, - contextMenu: state.mode === 'localhost' ? removeContextMenuItem(state, payload) : state.localhost.contextMenu + contextMenu: removeContextMenuItem(state, payload) } } }