From c572470f8f535b589fa84695c39ac5f5bb5ffaf7 Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:08:41 +0100 Subject: [PATCH] remove 'as' --- .../examine-management/views/section-view-examine-indexers.ts | 2 +- .../examine-management/views/section-view-examine-overview.ts | 4 ++-- .../views/section-view-examine-searchers.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-indexers.ts b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-indexers.ts index d20e902aca..0a3e1d0d50 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-indexers.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-indexers.ts @@ -95,7 +95,7 @@ export class UmbDashboardExamineIndexElement extends UmbContextConsumerMixin(Lit private async _getIndexData() { try { const index = await SearchResource.getSearchIndexByIndexName({ indexName: this.indexName }); - this._indexData = index as Index; + this._indexData = index; } catch (e) { if (e instanceof ApiError) { const error = e as ProblemDetails; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-overview.ts b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-overview.ts index 9f2f2e0f2a..a4aafcf9c1 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-overview.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-overview.ts @@ -66,7 +66,7 @@ export class UmbDashboardExamineOverviewElement extends UmbContextConsumerMixin( private async _getIndexers() { try { const indexers = await SearchResource.getSearchIndex({ take: 9999, skip: 0 }); - this._indexers = indexers.items as Index[]; + this._indexers = indexers.items; } catch (e) { if (e instanceof ApiError) { const error = e as ProblemDetails; @@ -79,7 +79,7 @@ export class UmbDashboardExamineOverviewElement extends UmbContextConsumerMixin( private async _getSearchers() { try { const searchers = await SearchResource.getSearchSearcher({ take: 9999, skip: 0 }); - this._searchers = searchers.items as Searcher[]; + this._searchers = searchers.items; } catch (e) { if (e instanceof ApiError) { const error = e as ProblemDetails; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-searchers.ts b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-searchers.ts index c65e4008ac..2851f3d17f 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-searchers.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/examine-management/views/section-view-examine-searchers.ts @@ -144,7 +144,7 @@ export class UmbDashboardExamineSearcherElement extends UmbContextConsumerMixin( take: 9999, skip: 0, }); - this._searchResults = res.items as SearchResult[]; + this._searchResults = res.items; this._updateFieldFilter(); } catch (e) { if (e instanceof ApiError) {