File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export default class MaterialTable extends React.Component {
133
133
this . dataManager . changeApplySearch ( false ) ;
134
134
this . dataManager . changeApplyFilters ( false ) ;
135
135
this . dataManager . changeApplySort ( false ) ;
136
- if ( typeof props . data != 'function' ) {
136
+ if ( typeof props . data !== 'function' ) {
137
137
this . dataManager . setData ( props . data , props . options . idSynonym ) ;
138
138
}
139
139
} else {
@@ -710,7 +710,7 @@ export default class MaterialTable extends React.Component {
710
710
onQueryChange = ( query , callback ) => {
711
711
query = { ...this . state . query , ...query , error : this . state . errorState } ;
712
712
713
- if ( typeof this . props . data == 'function' ) {
713
+ if ( typeof this . props . data === 'function' ) {
714
714
this . setState ( { isLoading : true , errorState : undefined } , ( ) => {
715
715
this . props
716
716
. data ( query )
You can’t perform that action at this time.
0 commit comments