From 7574cee733d447860811145e65c1ed23d78d0a3e Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Wed, 30 Sep 2020 07:33:38 -0700 Subject: [PATCH] check for the null Summary: This fixes the bug mentioned [here](https://fb.workplace.com/groups/flippersupport/permalink/976743249473000/) Reviewed By: nikoant Differential Revision: D24016091 fbshipit-source-id: 1ce49d850b6562fb9f09b9e640185316efc927c6 --- desktop/app/src/chrome/mainsidebar/sidebarUtils.tsx | 2 +- desktop/app/src/plugin.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/app/src/chrome/mainsidebar/sidebarUtils.tsx b/desktop/app/src/chrome/mainsidebar/sidebarUtils.tsx index 3043694ae..877b46398 100644 --- a/desktop/app/src/chrome/mainsidebar/sidebarUtils.tsx +++ b/desktop/app/src/chrome/mainsidebar/sidebarUtils.tsx @@ -168,7 +168,7 @@ export const PluginSidebarListItem: React.FC<{ /> {getPluginTitle(plugin)} diff --git a/desktop/app/src/plugin.tsx b/desktop/app/src/plugin.tsx index 381cbd6ac..3e6644ccc 100644 --- a/desktop/app/src/plugin.tsx +++ b/desktop/app/src/plugin.tsx @@ -126,7 +126,7 @@ export abstract class FlipperBasePlugin< static gatekeeper: string | null = null; static entry: string | null = null; static isDefault: boolean; - static details: PluginDetails; + static details: PluginDetails | undefined; static keyboardActions: KeyboardActions | null; static screenshot: string | null; static defaultPersistedState: any;