1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 13:15:28 +03:00

fix(editor): Fix mouse position in workflow previews (#7853)

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.
This commit is contained in:
Milorad FIlipović 2023-11-28 19:02:19 +01:00 committed by GitHub
parent 28ac5a750e
commit c0633987bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4705,6 +4705,7 @@ export default defineComponent({
});
this.readOnlyEnvRouteCheck();
this.canvasStore.isDemo = this.isDemo;
},
activated() {
const openSideMenu = this.uiStore.addFirstStepOnLoad;