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