Skip to content

Commit 7733f59

Browse files
committed
possible fix to disappering text in node editor
1 parent ba70524 commit 7733f59

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/flowco/ui/dialogs/node_editor.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,12 @@ def component_editor(
155155
focus=focus,
156156
)
157157
last_response = self.last_update.get(title, None)
158-
if (last_response is None and response["id"] != "") or (
159-
last_response is not None and last_response["id"] != response["id"]
158+
if response["id"] != "" and (
159+
last_response is None
160+
or (last_response is not None and last_response["id"] != response["id"])
160161
):
161-
# print(f"Last response: {last_response}")
162-
# print(f"Current response: {response}")
162+
print(f"Last response: {last_response}")
163+
print(f"Current response: {response}")
163164
self.last_update[title] = response
164165
return Response(response["text"], response["type"] == "submit")
165166
else:

0 commit comments

Comments
 (0)