Skip to content
Snippets Groups Projects
Commit d330b5b8 authored by Michele Alberti's avatar Michele Alberti
Browse files

[ivette] Force the typechecker to actual type.

parent 6dcc486a
No related branches found
No related tags found
No related merge requests found
...@@ -107,10 +107,8 @@ const RenderTable = () => { ...@@ -107,10 +107,8 @@ const RenderTable = () => {
const onPropertySelection = React.useCallback( const onPropertySelection = React.useCallback(
({ key, function: fct }: Property) => { ({ key, function: fct }: Property) => {
if (fct) { const location = { function: (fct as string), marker: key };
const location = { function: fct, marker: key }; updateSelection({ location });
updateSelection({ location });
}
}, [updateSelection], }, [updateSelection],
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment