diff --git a/public/app/features/explore/LogsContainer.tsx b/public/app/features/explore/LogsContainer.tsx index 1b2fc53a27c..5d6330caf01 100644 --- a/public/app/features/explore/LogsContainer.tsx +++ b/public/app/features/explore/LogsContainer.tsx @@ -91,11 +91,11 @@ export class LogsContainer extends PureComponent { return []; }; - showContextToggle = (): boolean => { + showContextToggle = (row?: LogRowModel): boolean => { const { datasourceInstance } = this.props; if (datasourceInstance?.showContextToggle) { - return datasourceInstance.showContextToggle(); + return datasourceInstance.showContextToggle(row); } return false;