n8n/packages
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
..
@n8n feat(editor): Upgrade frontend tooling to address a few vulnerabilities (#8100) 2023-12-19 19:23:55 +01:00
@n8n_io/eslint-config feat(editor): De-duplicate frontend devDependencies (no-changelog) (#8094) 2023-12-19 17:43:46 +01:00
cli refactor(core): Improve test-webhooks (no-changelog) (#8069) 2023-12-19 17:32:02 +01:00
core refactor(core): Improve test-webhooks (no-changelog) (#8069) 2023-12-19 17:32:02 +01:00
design-system feat(editor): Upgrade frontend tooling to address a few vulnerabilities (#8100) 2023-12-19 19:23:55 +01:00
editor-ui fix(editor): Fix copy/paste issue when switch node is in workflow (#8103) 2023-12-20 10:13:59 +01:00
node-dev 🚀 Release 1.21.0 (#8019) 2023-12-13 16:34:00 +01:00
nodes-base refactor(Discord Node): Stop reporting to Sentry inaccessible guild error (no-changelog) (#8095) 2023-12-19 15:07:51 +01:00
workflow refactor(core): Improve test-webhooks (no-changelog) (#8069) 2023-12-19 17:32:02 +01:00