@xuda.io/xuda-worker-bundle-min 1.3.847 → 1.3.849
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/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -52,6 +52,11 @@ func.common.find_ROWID_idx = function (_ds, rowId) {
|
|
|
52
52
|
|
|
53
53
|
// Find the index of the object with the given _ROWID
|
|
54
54
|
const index = _ds.data_feed.rows.findIndex((item) => item._ROWID === rowId);
|
|
55
|
+
// }
|
|
56
|
+
// If the index is -1, the ROWID was not found, so throw an error
|
|
57
|
+
if (index === -1) {
|
|
58
|
+
throw new Error(`ROWID "${rowId}" not found`);
|
|
59
|
+
}
|
|
55
60
|
|
|
56
61
|
// Return the found index
|
|
57
62
|
return index;
|
|
@@ -2729,7 +2734,7 @@ func.datasource.execute = async function (
|
|
|
2729
2734
|
_ds.viewRangeExp_rows_deleted = 0;
|
|
2730
2735
|
|
|
2731
2736
|
let rows = _ds?.raw_data?.rows?.length;
|
|
2732
|
-
|
|
2737
|
+
_ds.data_feed.rows = [];
|
|
2733
2738
|
_ds.data_feed.rows_changed = [];
|
|
2734
2739
|
_ds.data_feed.rows_deleted = [];
|
|
2735
2740
|
_ds.data_feed.rows_added = [];
|