diff --git a/public/app/features/browse-dashboards/components/SearchView.tsx b/public/app/features/browse-dashboards/components/SearchView.tsx index 7f7b1c9cbb3..5f9953dfbab 100644 --- a/public/app/features/browse-dashboards/components/SearchView.tsx +++ b/public/app/features/browse-dashboards/components/SearchView.tsx @@ -136,7 +136,7 @@ export function SearchView({ onTagSelected: stateManager.onAddTag, keyboardEvents, onDatasourceChange: searchState.datasource ? stateManager.onDatasourceChange : undefined, - onClickItem: stateManager.onSearchItemClicked, + onClickItem: searchState.deleted ? undefined : stateManager.onSearchItemClicked, }; return ; diff --git a/public/app/features/search/page/components/SearchResultsTable.tsx b/public/app/features/search/page/components/SearchResultsTable.tsx index 73238127388..39e79b3d765 100644 --- a/public/app/features/search/page/components/SearchResultsTable.tsx +++ b/public/app/features/search/page/components/SearchResultsTable.tsx @@ -148,7 +148,7 @@ export const SearchResultsTable = React.memo( cell={cell} columnIndex={index} columnCount={row.cells.length} - userProps={{ href: url, onClick: onClickItem }} + userProps={{ href: onClickItem ? url : undefined, onClick: onClickItem }} frame={response.view.dataFrame} /> ); diff --git a/public/app/features/search/page/components/columns.tsx b/public/app/features/search/page/components/columns.tsx index 72f6c1ae0bf..297771ce6eb 100644 --- a/public/app/features/search/page/components/columns.tsx +++ b/public/app/features/search/page/components/columns.tsx @@ -128,7 +128,7 @@ export const generateColumns = (
{!response.isItemLoaded(p.row.index) ? ( - ) : isDeleted ? ( + ) : isDeleted || !p.userProps.href ? ( {name} ) : (