Skip to content

Commit

Permalink
fix(editor): Fix mouse position in workflow previews (#7853)
Browse files Browse the repository at this point in the history
This PR fixes mouse position detection in workflow previews (executions
preview and workflow history view):


https://github.com/n8n-io/n8n/assets/2598782/83237b76-b099-4560-9c47-a963f0848297

**Cause**:
We were setting `isDemo` state in canvas store only when the `NodeView`
component is activated, which never happens for `NodeView` instances
that are kept alive (above mentioned workflow previews)

**Fix**:
This workflow updates store state also when the `NodeView` component is
mounted.
  • Loading branch information
MiloradFilipovic authored and netroy committed Nov 29, 2023
1 parent 9cd0a75 commit 83b5e6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor-ui/src/views/NodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4602,6 +4602,7 @@ export default defineComponent({
sourceControlEventBus.on('pull', this.onSourceControlPull);
this.readOnlyEnvRouteCheck();
this.canvasStore.isDemo = this.isDemo;
},
activated() {
const openSideMenu = this.uiStore.addFirstStepOnLoad;
Expand Down

0 comments on commit 83b5e6a

Please sign in to comment.