Have historyWatch report errors via notifyError instead of an onError callback.
This commit is contained in:
@@ -5,7 +5,6 @@ import TableCell from '@mui/material/TableCell';
|
||||
import TableHead from '@mui/material/TableHead';
|
||||
import TableRow from '@mui/material/TableRow';
|
||||
import { StorageManagerContext } from '../../../api/storageManagerContext';
|
||||
import { notifyError } from '../../../utils/notify';
|
||||
|
||||
function formatDate(iso) {
|
||||
return new Date(iso).toLocaleString('de-DE');
|
||||
@@ -24,7 +23,6 @@ export default class ArticleHistoryTab extends Component {
|
||||
this.unwatchHistory = this.context.article.historyWatch(
|
||||
this.props.sku,
|
||||
(history) => this.setState({ history }),
|
||||
notifyError,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user