Chore: Remove unnecessary type assertions (#78009)

* Chore: Remove unnecessary type assertions

* betterer
This commit is contained in:
Josh Hunt
2023-11-14 09:17:29 +00:00
committed by GitHub
parent a3ae9d418d
commit 2f2be24e01
21 changed files with 99 additions and 137 deletions

View File

@@ -50,7 +50,7 @@ export function ServiceGraphSection({
return null;
}
const ds = dsState.value as PrometheusDatasource;
const ds = dsState.value;
if (!graphDatasourceUid) {
return getWarning(