Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion plugins/csv-import/src/utils/typeInference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,16 @@ export function inferFieldsFromCSV(records: Record<string, string>[]): InferredF
const inferredFields: InferredField[] = []

for (const fieldName of fieldNames) {
// Skip special fields
// Skip special fields (e.g., `:draft`)
if (fieldName.startsWith(":")) {
continue
}

// Skip companion columns (e.g., `Image:alt` provides alt text for `Image`)
if (fieldName.endsWith(":alt")) {
continue
}

// Collect all values for this field
const values = records.map(record => {
const value = record[fieldName]
Expand Down
Loading