Catch potential missing element (#7059)

This commit is contained in:
Oliver 2024-04-18 08:49:18 +10:00 committed by GitHub
parent 0ba7f7ece5
commit c823f1420a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -269,7 +269,7 @@ class FileManagementFormView(MultiStepFormView):
for idx, item in row_data.items():
column_data = {
'name': self.column_names[idx],
'guess': self.column_selections[idx],
'guess': self.column_selections.get(idx, ''),
}
cell_data = {'cell': item, 'idx': idx, 'column': column_data}