From e510b2eee568117e73bad61a1c33d2322515a435 Mon Sep 17 00:00:00 2001
From: Sergio Betanzos <sbetanzos@opennebula.io>
Date: Mon, 22 Nov 2021 10:54:23 +0100
Subject: [PATCH] F #5422: Minor fix in autocomplete component (#1597)

---
 .../src/client/components/FormControl/AutocompleteController.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fireedge/src/client/components/FormControl/AutocompleteController.js b/src/fireedge/src/client/components/FormControl/AutocompleteController.js
index 9242477d7d..267961cd19 100644
--- a/src/fireedge/src/client/components/FormControl/AutocompleteController.js
+++ b/src/fireedge/src/client/components/FormControl/AutocompleteController.js
@@ -91,7 +91,7 @@ const AutocompleteController = memo(
         {...(Array.isArray(separators) && {
           autoSelect: true,
           onInputChange: (event, newInputValue) => {
-            if (separators.includes(newInputValue.at(-1))) {
+            if (separators.includes([...newInputValue].at(-1))) {
               event.target.blur()
               event.target.focus()
             }