intable 0.0.72 → 0.0.73
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.
|
@@ -211,18 +211,18 @@ const fetchDataByKeys = (() => {
|
|
|
211
211
|
};
|
|
212
212
|
return async (e, x) => {
|
|
213
213
|
if (!x.request || (e = e.filter((e) => !isEmpty(e)), !e.length)) return [];
|
|
214
|
-
let [S, C] = b(x), w = e.filter((e) => !S[e])
|
|
215
|
-
if (
|
|
214
|
+
let [S, C] = b(x), w = e.filter((e) => !S[e]).filter((e) => !C[e]);
|
|
215
|
+
if (w.length) {
|
|
216
216
|
let e = x.request({ filters: [{
|
|
217
217
|
field: x.rowKey,
|
|
218
218
|
op: "in",
|
|
219
|
-
value:
|
|
219
|
+
value: w
|
|
220
220
|
}] });
|
|
221
|
-
|
|
221
|
+
w.forEach((y, b) => {
|
|
222
222
|
C[y] = e.then((e) => S[y] = e.data[b]).finally(() => delete C[y]);
|
|
223
|
-
})
|
|
223
|
+
});
|
|
224
224
|
}
|
|
225
|
-
return e.map((e) => S[e]);
|
|
225
|
+
return await Promise.all(e.map((e) => C[e])), e.map((e) => S[e]);
|
|
226
226
|
};
|
|
227
227
|
})();
|
|
228
228
|
delegateEvents(["click"]);
|