message: import wizard: update single select suggestion logic
diff: @@ -2,9 +2,7 @@ import _isDate from "lodash/isDate";
  import _sortBy from "lodash/sortBy";
  import { FieldType } from "constants/fields";
  -function arrayIsUnique(myArray) {
  - return myArray.length === new Set(myArray).size;
  -}
  +
  export const SELECTABLE_TYPES = [
  FieldType.shortText,
  FieldType.longText,
  @@ -83,10 +81,11 @@ export const suggestType = (data: { [key: string]: any }[], field: string) => {
  const bestMatch = sortedResults[0][0];
  if (bestMatch === FieldType.shortText) {
  - const values = new Set();
  - data.forEach((row) => values.add(row[field]));
  - if (values.size <= 20 && !arrayIsUnique(values))
  - return FieldType.singleSelect;
  + const values = data.map((row) => row[field]);
  + const uniqueValues = new Set(values);
  + const hasDuplicates = values.length !== uniqueValues.size;
  +
  + if (hasDuplicates && uniqueValues.size < 30) return FieldType.singleSelect;
  }
  return bestMatch;
  