File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export class TableDataStore {
63
63
return ;
64
64
}
65
65
66
- this . _refresh ( ) ;
66
+ this . _refresh ( true ) ;
67
67
}
68
68
69
69
getColInfos ( ) {
@@ -101,12 +101,12 @@ export class TableDataStore {
101
101
else return this . data ;
102
102
}
103
103
104
- _refresh ( ) {
104
+ _refresh ( skipSorting ) {
105
105
if ( this . isOnFilter ) {
106
106
if ( this . filterObj !== null ) this . filter ( this . filterObj ) ;
107
107
if ( this . searchText !== null ) this . search ( this . searchText ) ;
108
108
}
109
- if ( this . sortObj ) {
109
+ if ( ! skipSorting && this . sortObj ) {
110
110
this . sort ( this . sortObj . order , this . sortObj . sortField ) ;
111
111
}
112
112
}
@@ -178,7 +178,7 @@ export class TableDataStore {
178
178
if ( this . isOnFilter ) {
179
179
this . data . unshift ( newObj ) ;
180
180
}
181
- this . _refresh ( ) ;
181
+ this . _refresh ( false ) ;
182
182
}
183
183
184
184
add ( newObj ) {
@@ -196,7 +196,7 @@ export class TableDataStore {
196
196
if ( this . isOnFilter ) {
197
197
this . data . push ( newObj ) ;
198
198
}
199
- this . _refresh ( ) ;
199
+ this . _refresh ( false ) ;
200
200
}
201
201
202
202
remove ( rowKey ) {
You can’t perform that action at this time.
0 commit comments