Skip to content

Commit b75d054

Browse files
ViseghohCopilot
andauthored
Update packages/editor/src/components/DataImport/helpers/applyAutoDetectedDateParseFormat.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5426c2c commit b75d054

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/editor/src/components/DataImport/helpers/applyAutoDetectedDateParseFormat.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ export const applyAutoDetectedDateParseFormat = (
1111
return config
1212
}
1313

14+
const existingDateParseFormat = config.xAxis.dateParseFormat
15+
16+
if (
17+
typeof existingDateParseFormat === 'string' &&
18+
existingDateParseFormat.trim() !== ''
19+
) {
20+
return config
21+
}
1422
const xAxisKey = config.xAxis.dataKey
1523

1624
const hasXAxisKeyInImportedData = importedData.some(row => row && xAxisKey in row)

0 commit comments

Comments
 (0)