From 1152821d8f9a3c2edd56f854688a011ffcfe465d Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Tue, 10 Jun 2025 16:28:47 +0800 Subject: [PATCH] fix(api): Invert logic for variable exclusion in `_should_variable_be_saved` --- api/services/workflow_draft_variable_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/workflow_draft_variable_service.py b/api/services/workflow_draft_variable_service.py index 1ce5133d4c..6c47341819 100644 --- a/api/services/workflow_draft_variable_service.py +++ b/api/services/workflow_draft_variable_service.py @@ -710,4 +710,4 @@ class DraftVariableSaver: exclude_var_names = self._EXCLUDE_VARIABLE_NAMES_MAPPING.get(self._node_type) if exclude_var_names is None: return True - return name in exclude_var_names + return name not in exclude_var_names