mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix few null checks to make master green (#25965)
This commit is contained in:
@@ -518,7 +518,7 @@ export class LokiDatasource extends DataSourceApi<LokiQuery, LokiOptions> {
|
||||
}
|
||||
|
||||
showContextToggle = (row?: LogRowModel) => {
|
||||
return row.searchWords && row.searchWords.length > 0;
|
||||
return row && row.searchWords && row.searchWords.length > 0;
|
||||
};
|
||||
|
||||
throwUnless = (err: any, condition: boolean, target: LokiQuery) => {
|
||||
|
||||
Reference in New Issue
Block a user