-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: Variable splitting and parameter extraction result in data loss when there is a form collection node #4236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ def smart_jsonpath_search(data: dict, path: str): | |
| class BaseVariableSplittingNode(IVariableSplittingNode): | ||
| def save_context(self, details, workflow_manage): | ||
| for key, value in details.get('result').items(): | ||
| self.context['key'] = value | ||
| self.context[key] = value | ||
| self.context['result'] = details.get('result') | ||
|
|
||
| def execute(self, input_variable, variable_list, **kwargs) -> NodeResult: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The provided code makes several improvements:
In terms of optimization: none significant changes have been made, but here's a small note for future maintenance: Improvements Made:
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No obvious irregularities identified in the provided code snippet. Here's a brief review:
The code is generally clean and efficient for setting up the context based on the extracted results from
details. There are no syntax errors or logical issues within this segment of the code at the given time.