@webitel/ui-datalist 1.0.74 → 1.0.76
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-datalist",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
4
4
|
"description": "Toolkit for building data lists in webitel ui system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && ( npm run lint:fix || true) && (npm run build:types || true) && npm run utils:publish",
|
|
@@ -173,6 +173,11 @@ export const tableStoreBody = <Entity extends { id: string; etag?: string }>(
|
|
|
173
173
|
try {
|
|
174
174
|
await Promise.all(els.map(deleteEl));
|
|
175
175
|
} finally {
|
|
176
|
+
// If we're deleting all items from the current page, and we're not on the first page,
|
|
177
|
+
// we should go to the previous page
|
|
178
|
+
if (els.length === dataList.value.length && page.value > 1) {
|
|
179
|
+
updatePage(page.value - 1);
|
|
180
|
+
}
|
|
176
181
|
await loadDataList();
|
|
177
182
|
}
|
|
178
183
|
};
|