Skip to content

Commit e151dff

Browse files
author
DigitMan
committed
Fixed style
1 parent 2f77d1a commit e151dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material-table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default class MaterialTable extends React.Component {
133133
this.dataManager.changeApplySearch(false);
134134
this.dataManager.changeApplyFilters(false);
135135
this.dataManager.changeApplySort(false);
136-
if (typeof props.data != 'function') {
136+
if (typeof props.data !== 'function') {
137137
this.dataManager.setData(props.data, props.options.idSynonym);
138138
}
139139
} else {
@@ -710,7 +710,7 @@ export default class MaterialTable extends React.Component {
710710
onQueryChange = (query, callback) => {
711711
query = { ...this.state.query, ...query, error: this.state.errorState };
712712

713-
if (typeof this.props.data == 'function') {
713+
if (typeof this.props.data === 'function') {
714714
this.setState({ isLoading: true, errorState: undefined }, () => {
715715
this.props
716716
.data(query)

0 commit comments

Comments
 (0)