We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4baef commit 6c1fd9cCopy full SHA for 6c1fd9c
src/app/middlewares/panelSync.js
@@ -1,4 +1,4 @@
1
-import { LIFTED_ACTION, SELECT_INSTANCE } from 'remotedev-app/lib/constants/actionTypes';
+import { LIFTED_ACTION, UPDATE_STATE, SELECT_INSTANCE } from 'remotedev-app/lib/constants/actionTypes';
2
import { getActiveInstance } from 'remotedev-app/lib/reducers/instances';
3
4
function panelDispatcher(bgConnection) {
@@ -7,7 +7,7 @@ function panelDispatcher(bgConnection) {
7
8
return store => next => action => {
9
const result = next(action);
10
- if (!autoselected) {
+ if (!autoselected && action.type === UPDATE_STATE) {
11
autoselected = true;
12
const connections = store.getState()
13
.instances.connections[tabId];
0 commit comments