Fix typo in Form::Import (#40451)

This commit is contained in:
Claire committed 2026-09-15 10:23:29 +02:00
1 parent 59e2ef27f8
commit f89378492d
1 file changed
+1 -1
+1 -1
View File
@@ -203,7 +203,7 @@ class Form::Import
def validate_json_data
return errors.add(:data, I18n.t('imports.errors.incompatible_type')) unless allowed_type_for_json?
return errors.add(:date, I18n.t('imports.errors.no_data')) if json_data.empty?
return errors.add(:data, I18n.t('imports.errors.no_data')) if json_data.empty?
errors.add(:data, I18n.t('imports.errors.over_rows_processing_limit', count: ROWS_PROCESSING_LIMIT)) if json_data.count > ROWS_PROCESSING_LIMIT
end