message: use sanatized value in multiselect formatter
diff: @@ -86,25 +86,25 @@ export default function MultiSelect({
  let sanitisedValue: any;
  if (isSingle) {
  - if (value === undefined || value === null) sanitisedValue = null;
  + if (value === undefined || value === null || value === "") sanitisedValue = null;
  else if (Array.isArray(value)) sanitisedValue = value[0];
  else sanitisedValue = value;
  } else {
  - if (value === undefined || value === null) sanitisedValue = [];
  + if (value === undefined || value === null || value === "") sanitisedValue = [];
  else sanitisedValue = value;
  }
  // Render chips or basic string
  const renderValue = isSingle
  ? () =>
  - typeof value === "string" && VARIANTS.includes(value.toLowerCase()) ? (
  - <FormattedChip label={value} className={classes.chip} />
  + typeof sanitisedValue === "string" && VARIANTS.includes(sanitisedValue.toLowerCase()) ? (
  + <FormattedChip label={sanitisedValue} className={classes.chip} />
  ) : (
  - <span className={classes.selectSingleLabel}>{value}</span>
  + <span className={classes.selectSingleLabel}>{sanitisedValue}</span>
  )
  : () => (
  <Grid container spacing={1} wrap="nowrap" className={classes.chipList}>
  - {value?.map(
  + {sanitisedValue?.map(
  (item) =>
  typeof item === "string" && (
  <Grid item key={item}>
  @@ -125,7 +125,7 @@ export default function MultiSelect({
  };
  if (typeof value === "string" && value !== "" && !isSingle)
  return <ConvertStringToArray value={value} onSubmit={onSubmit} />;
  -
  + console.log({sanitisedValue})
  return (
  // <Tooltip
  // title={
  