From 5b8e96f9b9d2308f0a9fe8a6581708d0d50f1c9f Mon Sep 17 00:00:00 2001 From: oda <934854676@qq.com> Date: Mon, 6 May 2024 13:31:17 +0800 Subject: [PATCH] fix: OdaTaskSummaryCell triggers openThisTask twice. --- src/ui/react-view/view-template/toggle-view.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/react-view/view-template/toggle-view.tsx b/src/ui/react-view/view-template/toggle-view.tsx index afce33c..918e169 100644 --- a/src/ui/react-view/view-template/toggle-view.tsx +++ b/src/ui/react-view/view-template/toggle-view.tsx @@ -25,9 +25,8 @@ export const ExternalToggleView = (props: { externalControl: boolean, onChange: () => void, - onLabelClicked?: () => void, + onContentClicked?: () => void, content?: IRenderable, - } & I_Stylable) => { const {externalControl, onChange, onContentClicked, content} = props; const className = externalControl ? "checkbox-container is-enabled" : "checkbox-container";