diff --git a/web-console/assets/ingestsegment.png b/web-console/assets/druid.png similarity index 100% rename from web-console/assets/ingestsegment.png rename to web-console/assets/druid.png diff --git a/web-console/assets/static-google-blobstore.png b/web-console/assets/google.png similarity index 100% rename from web-console/assets/static-google-blobstore.png rename to web-console/assets/google.png diff --git a/web-console/assets/static-s3.png b/web-console/assets/s3.png similarity index 100% rename from web-console/assets/static-s3.png rename to web-console/assets/s3.png diff --git a/web-console/src/components/array-input/array-input.tsx b/web-console/src/components/array-input/array-input.tsx index 02b0f12beb3..ec82932ccb7 100644 --- a/web-console/src/components/array-input/array-input.tsx +++ b/web-console/src/components/array-input/array-input.tsx @@ -23,7 +23,7 @@ import { compact } from '../../utils'; export interface ArrayInputProps { className?: string; - values: string[]; + values: string[] | undefined; onChange: (newValues: string[] | undefined) => void; placeholder?: string; large?: boolean; @@ -40,8 +40,11 @@ export const ArrayInput = React.memo(function ArrayInput(props: ArrayInputProps) const stringValue = e.target.value; const newValues: string[] = stringValue.split(/[,\s]+/).map((v: string) => v.trim()); const newValuesFiltered = compact(newValues); - if (newValues.length === newValuesFiltered.length) { - onChange(stringValue === '' ? undefined : newValuesFiltered); + if (stringValue === '') { + onChange(undefined); + setStringValue(undefined); + } else if (newValues.length === newValuesFiltered.length) { + onChange(newValuesFiltered); setStringValue(undefined); } else { setStringValue(stringValue); @@ -51,7 +54,7 @@ export const ArrayInput = React.memo(function ArrayInput(props: ArrayInputProps) return (