From 661e9c396be6cb7e85dedf00709d9da808f7bdfa Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 4 Mar 2017 18:42:17 -0300 Subject: [PATCH] Ivan - Update error debugging csv import [skip ci] --- .../app/admin/panel/settings/admin-panel-advanced-settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js b/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js index 8d319c94..39f769e0 100644 --- a/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js +++ b/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js @@ -238,14 +238,14 @@ class AdminPanelAdvancedSettings extends React.Component { .then((result) => this.setState({ messageType: 'success', messageTitle: i18n('SUCCESS_IMPORTING_CSV_DESCRIPTION'), - messageContent: ( + messageContent: (result.data.length) ? (
{i18n('ERRORS_FOUND')}
- ) + ) : null })) .catch(() => this.setState({messageType: 'error', messageTitle: null, messageContent: i18n('INVALID_FILE')})); }