Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: type error in list-operator (#22803)
呆萌闷油瓶371fe7a700d7
diff --git a/api/core/workflow/nodes/list_operator/node.py b/api/core/workflow/nodes/list_operator/node.pyindex ae9401b056f..b91fc622f69 100644--- a/api/core/workflow/nodes/list_operator/node.py+++ b/api/core/workflow/nodes/list_operator/node.py@@ -184,11 +184,10 @@ class ListOperatorNode(BaseNode):value = int(self.graph_runtime_state.variable_pool.convert_template(self._node_data.extract_by.serial).text)if value < 1:raise ValueError(f"Invalid serial index: must be >= 1, got {value}")+ if value > len(variable.value):+ raise InvalidKeyError(f"Invalid serial index: must be <= {len(variable.value)}, got {value}")value -= 1- if len(variable.value) > int(value):- result = variable.value[value]- else:- result = ""+ result = variable.value[value]return variable.model_copy(update={"value": [result]})diff --git a/web/app/components/base/date-and-time-picker/common/option-list-item.tsx b/web/app/components/base/date-and-time-picker/common/option-list-item.tsxindex 8c2c8d82f16..0144a7c6ecd 100644--- a/web/app/components/base/date-and-time-picker/common/option-list-item.tsx+++ b/web/app/components/base/date-and-time-picker/common/option-list-item.tsx@@ -18,7 +18,6 @@ const OptionListItem: FC<OptionListItemProps> = ({useEffect(() => {if (isSelected && !noAutoScroll)listItemRef.current?.scrollIntoView({ behavior: 'instant' })- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])return (diff --git a/web/app/components/base/date-and-time-picker/time-picker/index.tsx b/web/app/components/base/date-and-time-picker/time-picker/index.tsxindex d493106667a..8ef10abc2e2 100644--- a/web/app/components/base/date-and-time-picker/time-picker/index.tsx+++ b/web/app/components/base/date-and-time-picker/time-picker/index.tsx@@ -52,7 +52,6 @@ const TimePicker = ({else {setSelectedTime(prev => prev ? getDateWithTimezone({ date: prev, timezone }) : undefined)}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [timezone])const handleClickTrigger = (e: React.MouseEvent) => {diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsxindex 894a8b7f450..d326fdf6e42 100644--- a/web/app/components/plugins/plugin-page/index.tsx+++ b/web/app/components/plugins/plugin-page/index.tsx@@ -117,7 +117,6 @@ const PluginPage = ({showInstallFromMarketplace()}})()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [packageId, bundleInfo])const {diff --git a/web/service/use-plugins.ts b/web/service/use-plugins.tsindex 86f8134a5d0..2877ef15f24 100644--- a/web/service/use-plugins.ts+++ b/web/service/use-plugins.ts@@ -519,7 +519,6 @@ export const usePluginTaskList = (category?: PluginType) => {refreshPluginList(category ? { category } as any : undefined, !category)}}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [isRefetching])const handleRefetch = useCallback(() => {