- Fix - The choice of order column in tables has not been reset when going to another page. This caused crashes if the table in the other page did not have enough columns.

This commit is contained in:
Tomas Bures 2020-07-18 08:14:34 +02:00
parent 8eac78aa3a
commit 3828411faf
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ export default class List extends Component {
return (
<div>
<h2>{t('Mailtrain 2 beta')}</h2>
<div>{t('Build') + ' 2020-07-17-0000'}</div>
<div>{t('Build') + ' 2020-07-18-0813'}</div>
<p>{this.props.configItems.shoutout}</p>
</div>
);

View file

@ -279,7 +279,7 @@ class Table extends Component {
const dtOptions = {
columns,
order: this.props.order,
order: [...this.props.order],
autoWidth: false,
pageLength: this.props.pageLength,
dom: // This overrides Bootstrap 4 settings. It may need to be updated if there are updates in the DataTables Bootstrap 4 plugin.