mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-27 19:33:04 +08:00
fix(i18n): preserve instance-level node display_name and description in syncNodeTranslations
Only sync field-level translations (template inputs and outputs). Node titles and descriptions are instance-level identity — user and template renames must not be overwritten by canonical registry values.
This commit is contained in:
@ -1433,8 +1433,6 @@ export function syncNodeTranslations(): void {
|
||||
...node.data,
|
||||
node: {
|
||||
...node.data.node!,
|
||||
display_name: freshDef.display_name,
|
||||
description: freshDef.description,
|
||||
template: updatedTemplate,
|
||||
...(updatedOutputs && { outputs: updatedOutputs }),
|
||||
},
|
||||
|
||||
@ -41,7 +41,7 @@ withEventDeliveryModes(
|
||||
.nth(0)
|
||||
.fill("https://www.originaldiving.com/blog/top-ten-turtle-facts");
|
||||
|
||||
await page.getByTestId("textarea_str_input_value").click();
|
||||
await page.getByText("Instructions", { exact: true }).last().click();
|
||||
|
||||
await page
|
||||
.getByTestId("textarea_str_input_value")
|
||||
|
||||
Reference in New Issue
Block a user