From 608cdb983eca1e5270fd2b87aec567e55ab8a23e Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Thu, 16 Nov 2023 12:43:47 +0100 Subject: [PATCH] [Fix #236] Fixed sort function --- src/components/answer/TypeaheadAnswer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/answer/TypeaheadAnswer.jsx b/src/components/answer/TypeaheadAnswer.jsx index 25cda163..ccb33227 100644 --- a/src/components/answer/TypeaheadAnswer.jsx +++ b/src/components/answer/TypeaheadAnswer.jsx @@ -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 []; }