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
This commit is contained in:
Roberto Jimenez Sanchez
2025-12-02 22:12:58 +01:00
parent 98d62a1707
commit 2ff7acfc61
3 changed files with 1 additions and 3 deletions
@@ -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';
@@ -273,7 +273,6 @@ export function FolderActionsButton({ folder, repoType, isReadOnlyRepo }: Props)
selectedItems={{
dashboard: exportSelectedDashboards,
folder: {},
$all: false,
}}
onDismiss={() => {
setShowExportFolderDrawer(false);
@@ -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);