mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove several instances of non-strict null usage (#20563)
This commit is contained in:
@@ -30,7 +30,7 @@ import { LiveTailControls } from './useLiveTailControls';
|
||||
import { getLinksFromLogsField } from '../panel/panellinks/linkSuppliers';
|
||||
|
||||
interface LogsContainerProps {
|
||||
datasourceInstance: DataSourceApi | null;
|
||||
datasourceInstance?: DataSourceApi;
|
||||
exploreId: ExploreId;
|
||||
loading: boolean;
|
||||
|
||||
@@ -80,7 +80,7 @@ export class LogsContainer extends PureComponent<LogsContainerProps> {
|
||||
getLogRowContext = async (row: LogRowModel, options?: any): Promise<any> => {
|
||||
const { datasourceInstance } = this.props;
|
||||
|
||||
if (datasourceInstance) {
|
||||
if (datasourceInstance?.getLogRowContext) {
|
||||
return datasourceInstance.getLogRowContext(row, options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user