Add comment about renderChips condition
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 18 Dec 2018 12:40:07 +0000 (13:40 +0100)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 18 Dec 2018 12:40:07 +0000 (13:40 +0100)
Feature #14603

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/components/autocomplete/autocomplete.tsx

index 52918c34ab47ee68c009cff6bd5bfdb42b80598b..4b19b77115b388e3613c6004013ef6501aded2b6 100644 (file)
@@ -156,6 +156,7 @@ export class Autocomplete<Value, Suggestion> extends React.Component<Autocomplet
         /**
          * If input startAdornment prop is not undefined, input's label will stay above the input.
          * If there is not items, we want the label to go back to placeholder position.
+         * That why we return without a value instead of returning a result of a _map_ which is an empty array.
          */
         if (items.length === 0) {
             return;