From b1aebcf51150be06d5dc980cbfb135d8c5d5c3e7 Mon Sep 17 00:00:00 2001 From: pamfilos Date: Wed, 20 Dec 2023 11:57:49 +0100 Subject: [PATCH] ui: forms - fix input issue in import field Signed-off-by: pamfilos --- ui/cap-react/src/antd/forms/fields/ImportDataField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cap-react/src/antd/forms/fields/ImportDataField.js b/ui/cap-react/src/antd/forms/fields/ImportDataField.js index 41e3c22be..75fe1e5ea 100644 --- a/ui/cap-react/src/antd/forms/fields/ImportDataField.js +++ b/ui/cap-react/src/antd/forms/fields/ImportDataField.js @@ -100,7 +100,7 @@ const ImportDataField = ({ uiSchema, formData, onChange }) => { setSearchPage(1); }; - const _onSearch = (value, event, { source }) => { + const _onSearch = (value, event, { source = "input" } = {}) => { if (source == "input") { fetchSuggestions(); }