Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code Node Bug] ERASES and OVERWITES your code #12627

Closed
BryceClaudin opened this issue Jan 16, 2025 · 3 comments · Fixed by #12637
Closed

[Code Node Bug] ERASES and OVERWITES your code #12627

BryceClaudin opened this issue Jan 16, 2025 · 3 comments · Fixed by #12637
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@BryceClaudin
Copy link

Bug Description

Two code nodes. One of the nodes code get "overwritten" by the other. Not just a visual bug, when you press save, it overwrites the code.

If you don't notice this and catch it, you will lose your code. Thankfully, I could go to executions, to find an older version of my code to restore it.

See Video

To Reproduce

Don't know exact cause. I have been building out MANY workflows the last couple days. But it was only after I used the "ctrl + F" to find and replace all, this bug started happening. It only does it on the nodes I used "ctrl + F" on it seems. Happened across 3 different workflows.

Expected behavior

Your code will be overwritten and erased by the neighboring node.

Operating System

Ubuntu Linux 22.04

n8n Version

1.74.1

Node.js Version

.

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 16, 2025

Hey @BryceClaudin,

We have created an internal ticket to look into this which we will be tracking as "N8N-8120"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 16, 2025
@BryceClaudin
Copy link
Author

It happens even if I restart browser. Haven't tried restarting server.

@Joffcom
Copy link
Member

Joffcom commented Jan 16, 2025

To reproduce it looks like you have to change nodes using the little node icons on the side of the screen, For now I would recommend going back to the canvas and selecting the code node instead of using the little navigation icons this will prevent the issue from happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants