Skip to content

Commit

Permalink
Merge pull request #238 from kbss-cvut/fix-typeahead-sort
Browse files Browse the repository at this point in the history
Fixed sort function causing crash
  • Loading branch information
blcham authored Nov 17, 2023
2 parents 7528248 + 608cdb9 commit c22f5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/answer/TypeaheadAnswer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { IntelligentTreeSelect } from "intelligent-tree-select/lib/components/In
import "intelligent-tree-select/lib/styles.css";

const processTypeaheadOptions = (options, intl) => {
if (!options) {
if (!options || !options.length) {
return [];
}

Expand Down

0 comments on commit c22f5eb

Please sign in to comment.