From d330b5b8cfac0362fb45e90254b7dc428f118d59 Mon Sep 17 00:00:00 2001 From: Michele Alberti <michele.alberti@cea.fr> Date: Mon, 8 Jun 2020 16:52:50 +0200 Subject: [PATCH] [ivette] Force the typechecker to actual type. --- ivette/src/renderer/Properties.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ivette/src/renderer/Properties.tsx b/ivette/src/renderer/Properties.tsx index 77a29ae3b49..a96b7609ded 100644 --- a/ivette/src/renderer/Properties.tsx +++ b/ivette/src/renderer/Properties.tsx @@ -107,10 +107,8 @@ const RenderTable = () => { const onPropertySelection = React.useCallback( ({ key, function: fct }: Property) => { - if (fct) { - const location = { function: fct, marker: key }; - updateSelection({ location }); - } + const location = { function: (fct as string), marker: key }; + updateSelection({ location }); }, [updateSelection], ); -- GitLab