Have historyWatch report errors via notifyError instead of an onError callback.

This commit is contained in:
seb
2026-08-05 09:54:33 +02:00
parent 44d69e541c
commit c1545b6114
3 changed files with 5 additions and 8 deletions

View File

@@ -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,
);
}