Ivan - Update error debugging csv import [skip ci]
This commit is contained in:
parent
8c138b481c
commit
661e9c396b
|
@ -238,14 +238,14 @@ class AdminPanelAdvancedSettings extends React.Component {
|
||||||
.then((result) => this.setState({
|
.then((result) => this.setState({
|
||||||
messageType: 'success',
|
messageType: 'success',
|
||||||
messageTitle: i18n('SUCCESS_IMPORTING_CSV_DESCRIPTION'),
|
messageTitle: i18n('SUCCESS_IMPORTING_CSV_DESCRIPTION'),
|
||||||
messageContent: (
|
messageContent: (result.data.length) ? (
|
||||||
<div>
|
<div>
|
||||||
{i18n('ERRORS_FOUND')}
|
{i18n('ERRORS_FOUND')}
|
||||||
<ul>
|
<ul>
|
||||||
{result.data.map((error) => <li>{error}</li>)}
|
{result.data.map((error) => <li>{error}</li>)}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
)
|
) : null
|
||||||
}))
|
}))
|
||||||
.catch(() => this.setState({messageType: 'error', messageTitle: null, messageContent: i18n('INVALID_FILE')}));
|
.catch(() => this.setState({messageType: 'error', messageTitle: null, messageContent: i18n('INVALID_FILE')}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue