= {
errorMessages = t(`${i18nPrefix}.fieldRequired`, { field: t('workflow.nodes.assigner.assignedVariable') })
if (!errorMessages && value.operation !== WriteMode.clear) {
- if (value.operation === WriteMode.set) {
+ if (value.operation === WriteMode.set || value.operation === WriteMode.increment
+ || value.operation === WriteMode.decrement || value.operation === WriteMode.multiply
+ || value.operation === WriteMode.divide) {
if (!value.value && typeof value.value !== 'number')
errorMessages = t(`${i18nPrefix}.fieldRequired`, { field: t('workflow.nodes.assigner.variable') })
}
diff --git a/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx b/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx
index e770469329..59f85832b0 100644
--- a/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx
+++ b/web/app/components/workflow/nodes/variable-assigner/components/node-variable-item.tsx
@@ -33,7 +33,7 @@ const NodeVariableItem = ({
const { t } = useTranslation()
return (
diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx
index 643a9d922d..3c983cd364 100644
--- a/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx
+++ b/web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx
@@ -97,8 +97,9 @@ const ChatVariableModal = ({
return objectPlaceholder
}, [type])
const getObjectValue = useCallback(() => {
- if (!chatVar)
+ if (!chatVar || Object.keys(chatVar.value).length === 0)
return [DEFAULT_OBJECT_VALUE]
+
return Object.keys(chatVar.value).map((key) => {
return {
key,
diff --git a/web/i18n/de-DE/explore.ts b/web/i18n/de-DE/explore.ts
index 1e6f8c80d7..366726d3d1 100644
--- a/web/i18n/de-DE/explore.ts
+++ b/web/i18n/de-DE/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Übersetzen',
Programming: 'Programmieren',
HR: 'Personalwesen',
+ Agent: 'Agent',
+ Workflow: 'Arbeitsablauf',
},
}
diff --git a/web/i18n/en-US/explore.ts b/web/i18n/en-US/explore.ts
index c996f51820..d4368fb171 100644
--- a/web/i18n/en-US/explore.ts
+++ b/web/i18n/en-US/explore.ts
@@ -30,11 +30,13 @@ const translation = {
nameRequired: 'App name is required',
},
category: {
+ Agent: 'Agent',
Assistant: 'Assistant',
Writing: 'Writing',
Translate: 'Translate',
Programming: 'Programming',
HR: 'HR',
+ Workflow: 'Workflow',
},
}
diff --git a/web/i18n/es-ES/explore.ts b/web/i18n/es-ES/explore.ts
index 5f85d42362..74274d4699 100644
--- a/web/i18n/es-ES/explore.ts
+++ b/web/i18n/es-ES/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Traducción',
Programming: 'Programación',
HR: 'Recursos Humanos',
+ Agent: 'Agente',
+ Workflow: 'Flujo de trabajo',
},
}
diff --git a/web/i18n/fa-IR/explore.ts b/web/i18n/fa-IR/explore.ts
index 404a9f2593..f127e5cc62 100644
--- a/web/i18n/fa-IR/explore.ts
+++ b/web/i18n/fa-IR/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'ترجمه',
Programming: 'برنامهنویسی',
HR: 'منابع انسانی',
+ Agent: 'عامل',
+ Workflow: 'گردش',
},
}
diff --git a/web/i18n/fr-FR/explore.ts b/web/i18n/fr-FR/explore.ts
index fe65bea75b..627ed03e88 100644
--- a/web/i18n/fr-FR/explore.ts
+++ b/web/i18n/fr-FR/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Traduire',
Programming: 'Programmation',
HR: 'RH',
+ Agent: 'Agent',
+ Workflow: 'Flux de travail',
},
}
diff --git a/web/i18n/hi-IN/explore.ts b/web/i18n/hi-IN/explore.ts
index 53475d81bf..145c4e0e4f 100644
--- a/web/i18n/hi-IN/explore.ts
+++ b/web/i18n/hi-IN/explore.ts
@@ -36,6 +36,8 @@ const translation = {
Translate: 'अनुवाद',
Programming: 'प्रोग्रामिंग',
HR: 'मानव संसाधन',
+ Workflow: 'कार्यप्रवाह',
+ Agent: 'आढ़तिया',
},
}
diff --git a/web/i18n/it-IT/explore.ts b/web/i18n/it-IT/explore.ts
index d96adbc85e..60508028a1 100644
--- a/web/i18n/it-IT/explore.ts
+++ b/web/i18n/it-IT/explore.ts
@@ -36,6 +36,8 @@ const translation = {
Translate: 'Traduzione',
Programming: 'Programmazione',
HR: 'Risorse Umane',
+ Workflow: 'Flusso di lavoro',
+ Agent: 'Agente',
},
}
diff --git a/web/i18n/ja-JP/explore.ts b/web/i18n/ja-JP/explore.ts
index 5ae673d21b..0fafe088f0 100644
--- a/web/i18n/ja-JP/explore.ts
+++ b/web/i18n/ja-JP/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: '翻訳',
Programming: 'プログラミング',
HR: '人事',
+ Workflow: 'ワークフロー',
+ Agent: 'エージェント',
},
}
diff --git a/web/i18n/pl-PL/explore.ts b/web/i18n/pl-PL/explore.ts
index 052eb303bd..58c691119c 100644
--- a/web/i18n/pl-PL/explore.ts
+++ b/web/i18n/pl-PL/explore.ts
@@ -36,6 +36,8 @@ const translation = {
Translate: 'Tłumaczenie',
Programming: 'Programowanie',
HR: 'HR',
+ Agent: 'Agent',
+ Workflow: 'Przepływ pracy',
},
}
diff --git a/web/i18n/pt-BR/explore.ts b/web/i18n/pt-BR/explore.ts
index 4cf990cd1f..f77827b4ed 100644
--- a/web/i18n/pt-BR/explore.ts
+++ b/web/i18n/pt-BR/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Traduzir',
Programming: 'Programação',
HR: 'RH',
+ Workflow: 'Fluxo de trabalho',
+ Agent: 'Agente',
},
}
diff --git a/web/i18n/ro-RO/explore.ts b/web/i18n/ro-RO/explore.ts
index 6f4ba294ab..75fc97b8a2 100644
--- a/web/i18n/ro-RO/explore.ts
+++ b/web/i18n/ro-RO/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Traducere',
Programming: 'Programare',
HR: 'Resurse Umane',
+ Agent: 'Agent',
+ Workflow: 'Flux de lucru',
},
}
diff --git a/web/i18n/ru-RU/explore.ts b/web/i18n/ru-RU/explore.ts
index 6c0b41f7d4..97fad96244 100644
--- a/web/i18n/ru-RU/explore.ts
+++ b/web/i18n/ru-RU/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Перевод',
Programming: 'Программирование',
HR: 'HR',
+ Agent: 'Агент',
+ Workflow: 'Рабочий процесс',
},
}
diff --git a/web/i18n/sl-SI/explore.ts b/web/i18n/sl-SI/explore.ts
index ea3813b488..5ed9519044 100644
--- a/web/i18n/sl-SI/explore.ts
+++ b/web/i18n/sl-SI/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Prevajanje',
Programming: 'Programiranje',
HR: 'Kadri',
+ Workflow: 'Potek dela',
+ Agent: 'Agent',
},
}
diff --git a/web/i18n/th-TH/explore.ts b/web/i18n/th-TH/explore.ts
index 4f2ac0ee43..aaed249194 100644
--- a/web/i18n/th-TH/explore.ts
+++ b/web/i18n/th-TH/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'แปล',
Programming: 'โปรแกรม',
HR: 'ชั่วโมง',
+ Workflow: 'เวิร์กโฟลว์',
+ Agent: 'ตัวแทน',
},
}
diff --git a/web/i18n/tr-TR/explore.ts b/web/i18n/tr-TR/explore.ts
index 94aa2a2bfc..52b45c6b32 100644
--- a/web/i18n/tr-TR/explore.ts
+++ b/web/i18n/tr-TR/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Çeviri',
Programming: 'Programlama',
HR: 'İK',
+ Agent: 'Aracı',
+ Workflow: 'İş Akışı',
},
}
diff --git a/web/i18n/uk-UA/explore.ts b/web/i18n/uk-UA/explore.ts
index b632385431..8b2efc903e 100644
--- a/web/i18n/uk-UA/explore.ts
+++ b/web/i18n/uk-UA/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Переклад',
Programming: 'Програмування',
HR: 'HR',
+ Workflow: 'Робочий процес',
+ Agent: 'Агент',
},
}
diff --git a/web/i18n/vi-VN/explore.ts b/web/i18n/vi-VN/explore.ts
index 9c5d21052e..b1254fa8cd 100644
--- a/web/i18n/vi-VN/explore.ts
+++ b/web/i18n/vi-VN/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: 'Dịch thuật',
Programming: 'Lập trình',
HR: 'Nhân sự',
+ Agent: 'Người đại lý',
+ Workflow: 'Quy trình làm việc',
},
}
diff --git a/web/i18n/zh-Hans/explore.ts b/web/i18n/zh-Hans/explore.ts
index d4f4074205..bb7faf0396 100644
--- a/web/i18n/zh-Hans/explore.ts
+++ b/web/i18n/zh-Hans/explore.ts
@@ -30,11 +30,13 @@ const translation = {
nameRequired: '应用程序名称不能为空',
},
category: {
+ Agent: 'Agent',
Assistant: '助手',
Writing: '写作',
Translate: '翻译',
Programming: '编程',
HR: '人力资源',
+ Workflow: '工作流',
},
}
diff --git a/web/i18n/zh-Hant/explore.ts b/web/i18n/zh-Hant/explore.ts
index a8a5224cde..80dfe095dd 100644
--- a/web/i18n/zh-Hant/explore.ts
+++ b/web/i18n/zh-Hant/explore.ts
@@ -35,6 +35,8 @@ const translation = {
Translate: '翻譯',
Programming: '程式設計',
HR: '人力資源',
+ Agent: '代理',
+ Workflow: '工作流',
},
}