From 2ff7acfc6128d874814431cbcd429e8fd8139ebf Mon Sep 17 00:00:00 2001 From: Roberto Jimenez Sanchez Date: Tue, 2 Dec 2025 22:12:58 +0100 Subject: [PATCH] fix(typescript): fix TypeScript errors - Remove unused locationService import from BrowseActions.tsx - Remove property from DashboardTreeSelection objects in FolderActionsButton.tsx and ShareExport.tsx - is explicitly omitted from the type definition --- .../components/BrowseActions/BrowseActions.tsx | 2 +- .../browse-dashboards/components/FolderActionsButton.tsx | 1 - .../features/dashboard/components/ShareModal/ShareExport.tsx | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx b/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx index ba1831ab153..60855979411 100644 --- a/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx +++ b/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import { Trans, t } from '@grafana/i18n'; -import { config, locationService, reportInteraction } from '@grafana/runtime'; +import { config, reportInteraction } from '@grafana/runtime'; import { Button, Drawer, Stack, Text } from '@grafana/ui'; import { appEvents } from 'app/core/app_events'; import { ManagerKind } from 'app/features/apiserver/types'; diff --git a/public/app/features/browse-dashboards/components/FolderActionsButton.tsx b/public/app/features/browse-dashboards/components/FolderActionsButton.tsx index a45d8b227bf..25f126d7b9f 100644 --- a/public/app/features/browse-dashboards/components/FolderActionsButton.tsx +++ b/public/app/features/browse-dashboards/components/FolderActionsButton.tsx @@ -273,7 +273,6 @@ export function FolderActionsButton({ folder, repoType, isReadOnlyRepo }: Props) selectedItems={{ dashboard: exportSelectedDashboards, folder: {}, - $all: false, }} onDismiss={() => { setShowExportFolderDrawer(false); diff --git a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx index 50bd8e612ae..0b3b8e03f3e 100644 --- a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx +++ b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx @@ -120,7 +120,6 @@ export const ShareExport = memo(({ dashboard, panel, onDismiss }: Props) => { selectedItems={{ dashboard: dashboard.uid ? { [dashboard.uid]: true } : {}, folder: {}, - $all: false, }} onDismiss={() => { setShowExportToRepositoryDrawer(false);