From dcf3ee6982cc6e41ae95629e06a18dd6ac5143cf Mon Sep 17 00:00:00 2001 From: Harry Date: Mon, 15 Sep 2025 14:50:56 +0800 Subject: [PATCH] fix(trigger): update trigger label assignment for improved clarity - Changed the label assignment in the convertToTriggerWithProvider function from trigger.description.human to trigger.identity.label, ensuring the label reflects the correct identity format. This update enhances the accuracy of trigger data representation in the application. --- web/service/use-triggers.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/service/use-triggers.ts b/web/service/use-triggers.ts index 1097e81400..dc0d72bc96 100644 --- a/web/service/use-triggers.ts +++ b/web/service/use-triggers.ts @@ -23,9 +23,9 @@ const convertToTriggerWithProvider = (provider: TriggerProviderApiEntity): Trigg id: provider.plugin_id || provider.name, name: provider.name, author: provider.author, - description: provider.description, // Already TypeWithI18N format + description: provider.description, icon: provider.icon || '', - label: provider.label, // Already TypeWithI18N format + label: provider.label, type: CollectionType.builtIn, team_credentials: {}, is_team_authorization: false, @@ -35,11 +35,11 @@ const convertToTriggerWithProvider = (provider: TriggerProviderApiEntity): Trigg triggers: provider.triggers.map(trigger => ({ name: trigger.name, author: provider.author, - label: trigger.description.human, // Already TypeWithI18N format - description: trigger.description.llm, // Already TypeWithI18N format + label: trigger.identity.label, + description: trigger.description.llm, parameters: trigger.parameters.map(param => ({ name: param.name, - label: param.label, // Already TypeWithI18N format + label: param.label, human_description: param.description || param.label, type: param.type, form: param.type,