Skip to content

Commit

Permalink
bugfix: 解决异步数据源关联数据清空的时机问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xz8la8 committed May 24, 2021
1 parent e9d903f commit 61e0f28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/sula/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sula",
"version": "1.2.0-beta.62",
"version": "1.2.0-beta.63",
"module": "./es/index.js",
"main": "./es/index.js",
"types": "./es/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/sula/src/form/dependency/DepStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ export default class DepStore {
return memo;
}, {} as Record<string, any>);

autoResetValue && clearValueForSourceDependency(name, ctx, cascadePayload);
return triggerActionPlugin(
ctx,
assign({}, remoteSource, { params: assign({}, remoteSource.params, fetchDepInfo) }),
).then((source: any) => {
autoResetValue && clearValueForSourceDependency(name, ctx, cascadePayload);
).then((source: any) => {
form.setFieldSource(name, source);
});
}
Expand Down

0 comments on commit 61e0f28

Please sign in to comment.