From 18b01d3d5eb228bb2afa3a073699d12a6d5bbf9d Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Mon, 29 Jul 2019 14:18:10 +0200 Subject: [PATCH] Make header line in CSV optional in subscribers import [MAILPOET-2225] --- .../import/step_data_manipulation/match_table.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/src/subscribers/importExport/import/step_data_manipulation/match_table.jsx b/assets/js/src/subscribers/importExport/import/step_data_manipulation/match_table.jsx index 348e9f47c8..f840dfeced 100644 --- a/assets/js/src/subscribers/importExport/import/step_data_manipulation/match_table.jsx +++ b/assets/js/src/subscribers/importExport/import/step_data_manipulation/match_table.jsx @@ -30,7 +30,6 @@ function ColumnDataMatch({ header, subscribers }) { ); } ColumnDataMatch.propTypes = { - header: PropTypes.arrayOf(PropTypes.string).isRequired, subscribers: PropTypes.arrayOf( // all subscribers PropTypes.arrayOf( // single subscribers PropTypes.oneOfType( // properties of a subscriber @@ -38,6 +37,11 @@ ColumnDataMatch.propTypes = { ) ) ).isRequired, + header: PropTypes.arrayOf(PropTypes.string), +}; + +ColumnDataMatch.defaultProps = { + header: [], }; function Header({ header }) { @@ -132,7 +136,7 @@ function MatchTable({ -
+ {header ?
: null}