File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/controls/fieldCollectionData/collectionDataViewer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ export class CollectionDataViewer extends React.Component<ICollectionDataViewerP
147
147
private addAndSave = ( ) => {
148
148
// Check if the item is not empty
149
149
if ( this . state . inCreationItem ) {
150
- this . props . fOnSave ( [ ...this . state . crntItems , this . state . inCreationItem ] ) ;
150
+ let crntItems = [ ...this . state . crntItems , this . state . inCreationItem ] ;
151
+ crntItems = this . updateSortProperty ( crntItems ) ;
152
+ this . props . fOnSave ( crntItems ) ;
151
153
} else {
152
154
this . onSave ( ) ;
153
155
}
@@ -329,7 +331,7 @@ export class CollectionDataViewer extends React.Component<ICollectionDataViewerP
329
331
< div >
330
332
{
331
333
this . props . executeFiltering &&
332
- < SearchBox onChanged = { ( newValue ) => { this . setState ( { searchFilter : newValue , currentPage : 1 } ) ; } } placeholder = { strings . CollectionDataSearch } className = "FieldCollectionData__panel__search-box" />
334
+ < SearchBox onChanged = { ( newValue ) => { this . setState ( { searchFilter : newValue , currentPage : 1 } ) ; } } placeholder = { strings . CollectionDataSearch } className = "FieldCollectionData__panel__search-box" />
333
335
}
334
336
< div className = { `FieldCollectionData__panel__table ${ styles . table } ${ this . props . tableClassName || "" } ` } >
335
337
< div className = { `FieldCollectionData__panel__table-head ${ styles . tableRow } ${ styles . tableHead } ` } >
You can’t perform that action at this time.
0 commit comments