Loki: Remove unnecessary type extension (#64883)

remove unnecessary type extension
This commit is contained in:
Sven Grossmann 2023-03-16 11:28:40 +01:00 committed by GitHub
parent b19f7bb653
commit 652e7334c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ export class LokiDatasource
.map(getNormalizedLokiQuery) // "fix" the `.queryType` prop
.map((q) => ({ ...q, maxLines: q.maxLines ?? this.maxLines }));
const fixedRequest: DataQueryRequest<LokiQuery> & { targets: LokiQuery[] } = {
const fixedRequest: DataQueryRequest<LokiQuery> = {
...request,
targets: queries,
};