n8n/packages/editor-ui/src
Mutasem Aldmour 4b86926752
fix(editor): Fix copy/paste issue when switch node is in workflow (#8103)
## Summary
Fix bug where copy/pasting a node breaks the view. Issue seems to be
that copied workflow does not have Switch node when workflow is
rerendering..

<img width="1942" alt="Screenshot 2023-12-19 at 18 16 23"
src="https://github.com/n8n-io/n8n/assets/4711238/ad53b8ae-3693-4733-8f6b-7bc9e7b9d216">




## Related tickets and issues
[Linear ticket
ADO-1504](https://linear.app/n8n/issue/ADO-1504/unwanted-nodes-connections-after-copypaste-of-n8n-form-trigger)


## Review / Merge checklist
- [X] PR title and summary are descriptive. **Remember, the title
automatically goes into the changelog. Use `(no-changelog)` otherwise.**
([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md))
- [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up
ticket created.
- [x] Tests included.
> A bug is not considered fixed, unless a test is added to prevent it
from happening again.
   > A feature is not complete without tests.
2023-12-20 10:13:59 +01:00
..
__tests__ feat(n8n Form Trigger Node): Improvements (#7571) 2023-12-13 17:00:51 +02:00
api feat(editor): Add lead enrichment suggestions to workflow list (#8042) 2023-12-19 09:10:03 -05:00
assets/images feat: External Secrets storage for credentials (#6477) 2023-08-25 10:33:46 +02:00
components fix(editor): Fix copy/paste issue when switch node is in workflow (#8103) 2023-12-20 10:13:59 +01:00
composables feat(editor): Add lead enrichment suggestions to workflow list (#8042) 2023-12-19 09:10:03 -05:00
event-bus feat(core): Add support for building LLM applications (#7235) 2023-10-02 17:33:43 +02:00
hooks fix(editor): Fix dialogVisibleChanged hooks event when meta.value is undefined (no-changelog) (#7986) 2023-12-14 13:13:02 +02:00
mixins feat(n8n Form Trigger Node): Improvements (#7571) 2023-12-13 17:00:51 +02:00
models refactor: Run lintfix (no-changelog) (#7537) 2023-10-27 14:15:02 +02:00
plugins feat(editor): Add lead enrichment suggestions to workflow list (#8042) 2023-12-19 09:10:03 -05:00
rbac fix(editor): Replace isInstanceOwner checks with scopes where applicable (#7858) 2023-12-04 10:02:54 +01:00
stores fix(editor): Fix copy/paste issue when switch node is in workflow (#8103) 2023-12-20 10:13:59 +01:00
styles refactor(editor): Color palette updates, introduce dark mode (#6980) 2023-11-01 13:33:36 +01:00
types fix(editor): Replace isInstanceOwner checks with scopes where applicable (#7858) 2023-12-04 10:02:54 +01:00
utils fix: Upgrade axios to address CVE-2023-45857 (#7713) 2023-12-19 16:17:01 +01:00
views feat(editor): Gracefully ignore invalid payloads in postMessage handler (#8096) 2023-12-19 15:20:29 +01:00
App.vue refactor: Migrate externalHooks mixin to composables (no-changelog) (#7930) 2023-12-06 17:28:09 +02:00
constants.ts feat(editor): Add lead enrichment suggestions to workflow list (#8042) 2023-12-19 09:10:03 -05:00
init.ts fix(editor): Fix cloud plan data loading on instance (#7841) 2023-11-29 10:51:15 +01:00
Interface.ts refactor: Add telemetry for RBAC (no-changelog) (#8056) 2023-12-19 17:02:52 +01:00
main.ts fix(editor): Remove n8nHooksNext flag (no-changelog) (#7733) 2023-11-17 14:44:28 +01:00
n8n-theme-variables.scss refactor(editor): Color palette updates, introduce dark mode (#6980) 2023-11-01 13:33:36 +01:00
n8n-theme.scss fix(editor): Dark mode switch style fix and other tweaks (no-changelog) (#7599) 2023-11-14 17:13:30 +01:00
permissions.ts fix(editor): Add back credential use permission (#8023) 2023-12-14 13:36:36 +01:00
router.ts refactor: Migrate externalHooks mixin to composables (no-changelog) (#7930) 2023-12-06 17:28:09 +02:00
shims-vue.d.ts feat(editor): Migrate Design System and Editor UI to Vue 3 (#6476) 2023-07-28 09:51:07 +02:00
shims.d.ts fix(editor): Remove n8nHooksNext flag (no-changelog) (#7733) 2023-11-17 14:44:28 +01:00