File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/features/import/components/ImportDialog/elements/ImportMessageList Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
12
12
import messageIds from 'features/import/l10n/messageIds' ;
13
13
import ProblemRowsText from './ProblemRowsText' ;
14
14
import { useMessages } from 'core/i18n' ;
15
+ import useSheets from '../../../../hooks/useSheets' ;
15
16
16
17
type Props = {
17
18
description ?: string ;
@@ -32,7 +33,11 @@ const ImportMessage: FC<Props> = ({
32
33
} ) => {
33
34
const messages = useMessages ( messageIds ) ;
34
35
35
- const rowNumbers = rowIndices ?. map ( ( rowIndex ) => rowIndex + 1 ) ;
36
+ const { firstRowIsHeaders } = useSheets ( ) ;
37
+
38
+ const rowNumbers = rowIndices ?. map ( ( rowIndex ) =>
39
+ firstRowIsHeaders ? rowIndex + 2 : rowIndex + 1
40
+ ) ;
36
41
37
42
return (
38
43
< Alert
You can’t perform that action at this time.
0 commit comments