Make commit 26a6749b3d condition available only for refresh add

This commit is contained in:
Hadi Nategh 2020-08-20 15:19:15 +02:00
parent 6b910cc5fe
commit d48efdedd8
2 changed files with 2 additions and 2 deletions

View File

@ -597,7 +597,7 @@ var et2_nextmatch = /** @class */ (function (_super) {
(this.is_sorted_by_modified() ? 0 : false); (this.is_sorted_by_modified() ? 0 : false);
// workaround for datagrid deleting the last row, see ticket #48204 // workaround for datagrid deleting the last row, see ticket #48204
// if we only have a couple of rows, do a full refresh instead // if we only have a couple of rows, do a full refresh instead
if (this.controller.getTotalCount() < 15) { if (this.controller.getTotalCount() < 15 && type != et2_nextmatch.UPDATE) {
return false; return false;
} }
// No add, do a full refresh // No add, do a full refresh

View File

@ -894,7 +894,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
// workaround for datagrid deleting the last row, see ticket #48204 // workaround for datagrid deleting the last row, see ticket #48204
// if we only have a couple of rows, do a full refresh instead // if we only have a couple of rows, do a full refresh instead
if (this.controller.getTotalCount() < 15) if (this.controller.getTotalCount() < 15 && type != et2_nextmatch.UPDATE)
{ {
return false; return false;
} }