Skip to content

Commit 6183c7f

Browse files
authored
Warn rather than error for deprecations (#664)
Would be nice to have the deprecations warn rather than error until the next major version due to transient dependency inclusion.
1 parent d8fb7db commit 6183c7f

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
@@ -76,7 +76,7 @@ export default class MaterialTable extends React.Component {
7676
* Warn consumer of renamed prop.
7777
*/
7878
if (this.props.onDoubleRowClick !== undefined) {
79-
console.error(
79+
console.warn(
8080
'Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`'
8181
);
8282
}
@@ -85,7 +85,7 @@ export default class MaterialTable extends React.Component {
8585
* Warn consumer of deprecated prop.
8686
*/
8787
if (this.props.options.sorting !== undefined) {
88-
console.error(
88+
console.warn(
8989
'Property `sorting` has been deprecated, please start using `maxColumnSort` instead'
9090
);
9191
}

0 commit comments

Comments
 (0)