fix: update appearing when sending the same code (#2742)

Fixed bug where the update node appeared after sending the same code as before
This commit is contained in:
Lucas Oliveira 2024-07-16 18:45:52 -03:00 committed by GitHub
commit b9ef29ecd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,6 +84,6 @@ def update_frontend_node_with_template_values(frontend_node, raw_frontend_node):
old_code = raw_frontend_node["template"]["code"]["value"]
new_code = frontend_node["template"]["code"]["value"]
frontend_node["edited"] = old_code != new_code
frontend_node["edited"] = raw_frontend_node["edited"] or (old_code != new_code)
return frontend_node