Chore: Remove several instances of non-strict null usage (#20563)

This commit is contained in:
kay delaney
2019-11-26 09:01:32 +00:00
committed by GitHub
parent 665079dc8c
commit 514f2beafc
29 changed files with 88 additions and 86 deletions

View File

@@ -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);
}