From 9c17206a6942776f4c90c662153677ae9c00c350 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Thu, 28 Sep 2023 10:14:20 +0200 Subject: [PATCH] fix: type error --- services/plugin/src/Plugin.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/plugin/src/Plugin.tsx b/services/plugin/src/Plugin.tsx index 03e04e29..3b65c85e 100644 --- a/services/plugin/src/Plugin.tsx +++ b/services/plugin/src/Plugin.tsx @@ -55,12 +55,13 @@ export const Plugin = ({ // since we do not know what props are passed, the dependency array has to be keys of whatever is standard prop const memoizedPropsToPass = useMemo( () => propsToPass, - // eslint-disable-next-line react-hooks/exhaustive-deps + /* eslint-disable react-hooks/exhaustive-deps */ [ ...Object.keys(propsToPass) .sort() - .map((k) => propsToPass[k]), + .map((k) => (propsToPass as any)[k]), ] + /* eslint-enable react-hooks/exhaustive-deps */ ) useEffect(() => {