From f3f5018f71e3a6c05f9b2dfcd3987a0c2729259d Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Mon, 10 Jul 2023 09:22:39 -0700 Subject: [PATCH] Add No source found state and error state Summary: Note There is currently an issue with myles https://fb.workplace.com/groups/myles.search/permalink/1446945366079946/?notif_id=1688467057742844¬if_t=video_processed&ref=notif Reviewed By: lblasa Differential Revision: D47210290 fbshipit-source-id: 584435922610e5138a6c14543163fcf3a347a727 --- .../ui-debugger/components/util/UIDebuggerMenuItem.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/components/util/UIDebuggerMenuItem.tsx b/desktop/plugins/public/ui-debugger/components/util/UIDebuggerMenuItem.tsx index 9b88dd90c..f2d397bbf 100644 --- a/desktop/plugins/public/ui-debugger/components/util/UIDebuggerMenuItem.tsx +++ b/desktop/plugins/public/ui-debugger/components/util/UIDebuggerMenuItem.tsx @@ -21,7 +21,7 @@ import React from 'react'; export const UIDebuggerMenuItem: React.FC<{ text: string; icon?: React.ReactNode; - onClick: () => void; + onClick?: () => void; }> = ({text, onClick, icon}) => { const instance = usePlugin(plugin); @@ -36,8 +36,9 @@ export const UIDebuggerMenuItem: React.FC<{ } return ( { - onClick(); + onClick?.(); instance.uiState.isContextMenuOpen.set(false); }}>