From 727f38f92d55fba940dcd6eb545f1bfec2606252 Mon Sep 17 00:00:00 2001 From: AruSeito Date: Thu, 10 Nov 2022 19:27:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PanelSetters/SelectSetter/eventTargetWidgetSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/builder/src/page/App/components/PanelSetters/SelectSetter/eventTargetWidgetSelect.tsx b/apps/builder/src/page/App/components/PanelSetters/SelectSetter/eventTargetWidgetSelect.tsx index 23a90785cd..d767bd2f51 100644 --- a/apps/builder/src/page/App/components/PanelSetters/SelectSetter/eventTargetWidgetSelect.tsx +++ b/apps/builder/src/page/App/components/PanelSetters/SelectSetter/eventTargetWidgetSelect.tsx @@ -24,7 +24,7 @@ export const EventTargetWidgetSelect: FC = (props) => { if (key !== widgetDisplayName) { const widgetType = widgetDisplayNameMapProps[key].$widgetType const widgetMethod = - widgetBuilder(widgetType).eventHandlerConfig?.methods ?? [] + widgetBuilder(widgetType)?.eventHandlerConfig?.methods ?? [] if (widgetMethod.length > 0) { tmpOptions.push({ label: key,