Skip to content

Commit 146bef3

Browse files
authored
[elsa] 序列化保存时改为同步调用,避免异步调用导致可能的错误的状态保存 (#103)
1 parent dbbdec7 commit 146bef3

File tree

1 file changed

+2
-2
lines changed
  • framework/elsa/fit-elsa/core

1 file changed

+2
-2
lines changed

framework/elsa/fit-elsa/core/atom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Atom {
4646
constructor(detections = []) {
4747
let defaultDetections = [];
4848
defaultDetections.push({
49-
props: new Set(["type"]), react: async function (property, value, preValue, target) {
49+
props: new Set(["type"]), react: function (property, value, preValue, target) {
5050
let parentChain = target.typeChain;
5151
target.typeChain = {
5252
parent: parentChain, type: value
@@ -156,7 +156,7 @@ class Atom {
156156

157157
proxy.addDetection = (props, react) => {
158158
detections.push({
159-
props: new Set(props), react: async function (property, value, preValue) {
159+
props: new Set(props), react: function (property, value, preValue) {
160160
if (proxy.page === undefined || proxy.page.disableReact) {
161161
return;
162162
}

0 commit comments

Comments
 (0)