x-runtime-lib 0.8.202 → 0.8.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11137,7 +11137,7 @@ var PromiseManager = class {
|
|
|
11137
11137
|
}
|
|
11138
11138
|
states = {};
|
|
11139
11139
|
resetStates() {
|
|
11140
|
-
this.states = {};
|
|
11140
|
+
if (this.states = {}, this.meta.value?.states) for (let { id: e, type: p } of this.meta.value.states) this.states[e] = getTypeDefault(p);
|
|
11141
11141
|
}
|
|
11142
11142
|
isValidOfState(e) {
|
|
11143
11143
|
return this.meta.value ? !!this.meta.value.states?.find((p) => p.id === e) : !1;
|