From a192924ee55994426b4ea8663e1d6be7edd31714 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 24 Oct 2019 13:31:54 +0200 Subject: [PATCH] Fix infinit rerendering of TypeDeChamp component fix #4428 --- .../components/TypesDeChampEditor/components/TypeDeChamp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.js b/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.js index b158d51da..5b4dc12fa 100644 --- a/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.js +++ b/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.js @@ -31,7 +31,7 @@ const TypeDeChamp = sortableElement( !isHeaderSection && !isExplication && !state.isAnnotation; const [ref, inView] = useInView({ - threshold: [0.6] + threshold: 0.6 }); const updateHandlers = createUpdateHandlers(