flameresttable 1.0.93 → 1.0.95
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 +1 -1
- package/src/Table/FlameTable.ts +2 -2
package/package.json
CHANGED
package/src/Table/FlameTable.ts
CHANGED
|
@@ -134,7 +134,7 @@ export default class FlameTable<T> {
|
|
|
134
134
|
* Загрузить результаты от RESTа в таблицу
|
|
135
135
|
* @param rows Отданный объект
|
|
136
136
|
*/
|
|
137
|
-
public load(rows: Rows<T>, isAppend: boolean) {
|
|
137
|
+
public load(rows: Rows<T>, isAppend: boolean = false) {
|
|
138
138
|
|
|
139
139
|
rows.pages = rows.pages ?? { count: 0, page: 1, perPage: 1, total: 0 };
|
|
140
140
|
|
|
@@ -244,7 +244,7 @@ export default class FlameTable<T> {
|
|
|
244
244
|
const allParams = merge({}, { page: this.Pager.page, perPage: this.Pager.perPage }, this.opts.LoadParams, filters);
|
|
245
245
|
|
|
246
246
|
// Если всё уже загружено
|
|
247
|
-
if (this.Pager.total !== 0 && allParams.page > this.Pager.total / this.Pager.perPage) return;
|
|
247
|
+
if (this.Pager.total !== 0 && allParams.page - 1 > this.Pager.total / this.Pager.perPage) return;
|
|
248
248
|
|
|
249
249
|
// Запускаем прогрузку
|
|
250
250
|
this.loadingStatus = 'process';
|