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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user