-
|
I’ve written a component that gets the display_name (self.display_name) for that component when kicking off a function that is tied to that component’s output. However, if I use the editor (REACT front-end), drag a component into the flow, change the display_name of the component in the editor (via the edit icon for the display_name and description), the display_name is still unchanged when I go to grab it as “self.display_name” when I am running function tied to an output. Not sure how to solve this problem. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @zyaar! I'm Dosu and I’m helping the langflow team. This is a known issue: the backend only updates self.display_name if the frontend sends the updated value in the flow data. If the UI doesn't actually mutate the node's display_name in its local data before saving, the backend won't see the change—even if you edit it in the UI. The backend always uses whatever display_name value it receives for that node in the flow data, so the bug is likely on the frontend side, where the edit isn't being properly saved or sent to the backend when you update the flow. A temporary workaround is to double-click the component title in the UI and manually change it, but this doesn't always guarantee backend synchronization, depending on your version and whether the frontend is correctly saving the change. This issue was acknowledged and a fix was planned for a release around mid-January, but recent code and PRs don't show a definitive fix for this specific sync problem yet. For now, make sure to save the flow after editing, and if the issue persists, it's likely due to the frontend not including the updated display_name in the payload sent to the backend when saving or updating the flow. More details and discussion can be found here. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Hi @zyaar! I'm Dosu and I’m helping the langflow team.
This is a known issue: the backend only updates self.display_name if the frontend sends the updated value in the flow data. If the UI doesn't actually mutate the node's display_name in its local data before saving, the backend won't see the change—even if you edit it in the UI. The backend always uses whatever display_name value it receives for that node in the flow data, so the bug is likely on the frontend side, where the edit isn't being properly saved or sent to the backend when you update the flow.
A temporary workaround is to double-click the component title in the UI and manually change it, but this doesn't always guarantee ba…