Fix throughput input component and add database panel (#773)

This commit is contained in:
victor-meng
2021-05-12 11:56:24 -07:00
committed by GitHub
parent 0a6c7c0ff9
commit 2f6dbd83f3
7 changed files with 177 additions and 299 deletions

View File

@@ -18,7 +18,7 @@ export const useSidePanel = (): SidePanelHooks => {
setHeaderText(headerText);
setPanelContent(panelContent);
setIsPanelOpen(true);
setOnCloseCallback({ callback: onClose });
!!onClose && setOnCloseCallback({ callback: onClose });
};
const closeSidePanel = (): void => {