Skip to content

Commit 4ee8ed7

Browse files
author
Ives van Hoorne
committed
Only open module if it's not open yet
1 parent 98fd7d5 commit 4ee8ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/app/store/factories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function setCurrentModuleById(id) {
4242
moduleEntry => moduleEntry.id === resolve.value(id)
4343
);
4444

45-
if (module) {
45+
if (module && state.get('editor.currentModuleShortid') !== module.shortid) {
4646
state.set('editor.currentModuleShortid', module.shortid);
4747
}
4848
};

0 commit comments

Comments
 (0)