From a954e019ec40270ac621cfa21e3b596fdf2f1bfe Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Fri, 28 May 2021 10:07:55 +0200 Subject: [PATCH] Fix endless loop on render Select component --- scm-ui/ui-components/src/forms/Select.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-ui/ui-components/src/forms/Select.tsx b/scm-ui/ui-components/src/forms/Select.tsx index 9373b7e8d2..27c416ec94 100644 --- a/scm-ui/ui-components/src/forms/Select.tsx +++ b/scm-ui/ui-components/src/forms/Select.tsx @@ -91,7 +91,7 @@ const InnerSelect: FC> = ({ } } } - }, [field, name, props, value]); + }, [field, value, name, props.onChange, props.innerRef]); const loadingClass = loading ? "is-loading" : ""; @@ -109,7 +109,7 @@ const InnerSelect: FC> = ({ disabled={disabled} {...createAttributesForTesting(testId)} > - {props.options.map(opt => { + {props.options.map((opt) => { return (