Chore: Fix bunch of strict null error to fix master CI (#23443)

* Fix bunch of null error

* Fix failing test

* Another test fix
This commit is contained in:
Andrej Ocenas
2020-04-08 23:44:10 +02:00
committed by GitHub
parent 363bf7506d
commit 263dcb1452
9 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export const LogsPanel: React.FunctionComponent<LogsPanelProps> = ({
);
}
const newResults = data ? dataFrameToLogsModel(data.series, data.request.intervalMs, timeZone) : null;
const newResults = data ? dataFrameToLogsModel(data.series, data.request?.intervalMs, timeZone) : null;
const sortedNewResults = sortLogsResult(newResults, sortOrder);
return (
@@ -658,7 +658,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
window.location.href = linkInfo.href;
} else {
$timeout(() => {
$location.url(locationUtil.stripBaseFromUrl(linkInfo.href));
$location.url(locationUtil.stripBaseFromUrl(linkInfo!.href));
});
}