Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] check category (#1316)

Shan Hef0a966cd0400
diff --git a/src/processors/data-processor.js b/src/processors/data-processor.js
index 9e1368c02..63e1c6cdb 100644
--- a/src/processors/data-processor.js
+++ b/src/processors/data-processor.js
@@ -587,7 +587,7 @@ export function validateInputData(data) {
if (f.type === ALL_FIELD_TYPES.timestamp) {
const sample = findNonEmptyRowsAtField(rows, i, 10).map(r => ({ts: r[i]}));
const analyzedType = Analyzer.computeColMeta(sample)[0];
- return analyzedType.category === 'TIME' && analyzedType.format === f.format;
+ return analyzedType && analyzedType.category === 'TIME' && analyzedType.format === f.format;
}
return true;