From 1495c18192d5722b21b23a40c08762471ecb8b13 Mon Sep 17 00:00:00 2001 From: sergeyteleshev Date: Tue, 2 Apr 2024 11:53:16 +0200 Subject: [PATCH] CB-4548 code cleanup --- .../plugin-sql-editor/src/SqlEditorGroupTabsBootstrap.ts | 7 +++++++ .../plugin-sql-editor/src/SqlResultTabs/SqlResultTabs.tsx | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/webapp/packages/plugin-sql-editor/src/SqlEditorGroupTabsBootstrap.ts b/webapp/packages/plugin-sql-editor/src/SqlEditorGroupTabsBootstrap.ts index 7e8b3ea541..3f1404ee55 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlEditorGroupTabsBootstrap.ts +++ b/webapp/packages/plugin-sql-editor/src/SqlEditorGroupTabsBootstrap.ts @@ -1,3 +1,10 @@ +/* + * CloudBeaver - Cloud Database Manager + * Copyright (C) 2020-2024 DBeaver Corp and others + * + * Licensed under the Apache License, Version 2.0. + * you may not use this file except in compliance with the License. + */ import type { IDataContextProvider } from '@cloudbeaver/core-data-context'; import { Bootstrap, injectable } from '@cloudbeaver/core-di'; import { DATA_CONTEXT_TABS_CONTEXT, MENU_TAB } from '@cloudbeaver/core-ui'; diff --git a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/SqlResultTabs.tsx b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/SqlResultTabs.tsx index 5b84c590a3..1678ab91d5 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/SqlResultTabs.tsx +++ b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/SqlResultTabs.tsx @@ -57,7 +57,7 @@ export const SqlResultTabs = observer(function SqlDataResult({ state, onT onTabSelect?.(tab.tabId); } - async function handleClose(tab: ITabData) { + function handleClose(tab: ITabData) { const canClose = handleCanClose(tab); if (canClose) {