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 e194fc47e9..0b9d346272 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 @@ -146,8 +146,8 @@ export class UmbDashboardExamineIndexElement extends UmbContextConsumerMixin(Lit } catch (e) { this._buttonState = 'failed'; if (e instanceof ApiError) { - const error = e.body as ProblemDetails; - const data: UmbNotificationDefaultData = { message: error.data.detail ?? 'Rebuild error' }; + const error = e as ProblemDetails; + const data: UmbNotificationDefaultData = { message: error.message ?? 'Rebuild error' }; this._notificationService?.peek('danger', { data }); } } 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 3e99110fd4..390561044b 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 @@ -7,7 +7,7 @@ import { UmbNotificationService } from '../../../../core/services/notification'; import { UmbNotificationDefaultData } from '../../../../core/services/notification/layouts/default'; import { UmbContextConsumerMixin } from '@umbraco-cms/context-api'; -import { ApiError, ProblemDetails, Searcher, Index, PagedIndex, SearchResource } from '@umbraco-cms/backend-api'; +import { ApiError, ProblemDetails, Searcher, Index, SearchResource } from '@umbraco-cms/backend-api'; @customElement('umb-dashboard-examine-overview') export class UmbDashboardExamineOverviewElement extends UmbContextConsumerMixin(LitElement) { @@ -65,12 +65,12 @@ export class UmbDashboardExamineOverviewElement extends UmbContextConsumerMixin( private async _getIndexers() { try { - const indexers = await SearchResource.getSearchIndex({ skip: 0, take: 3 }); + const indexers = await SearchResource.getSearchIndex({}); this._indexers = indexers.items as Index[]; } catch (e) { if (e instanceof ApiError) { - const error = e.body as ProblemDetails; - const data: UmbNotificationDefaultData = { message: error.data.detail ?? 'Could not fetch indexers' }; + const error = e as ProblemDetails; + const data: UmbNotificationDefaultData = { message: error.message ?? 'Could not fetch indexers' }; this._notificationService?.peek('danger', { data }); } } @@ -78,12 +78,12 @@ export class UmbDashboardExamineOverviewElement extends UmbContextConsumerMixin( private async _getSearchers() { try { - const searchers = await SearchResource.getSearchSearcher({ skip: 0, take: 3 }); + const searchers = await SearchResource.getSearchSearcher({}); this._searchers = searchers.items as Searcher[]; } catch (e) { if (e instanceof ApiError) { - const error = e.body as ProblemDetails; - const data: UmbNotificationDefaultData = { message: error.data.detail ?? 'Could not fetch searchers' }; + const error = e as ProblemDetails; + const data: UmbNotificationDefaultData = { message: error.message ?? 'Could not fetch searchers' }; this._notificationService?.peek('danger', { data }); } } 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 8bf1d69825..8cf7a8480f 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 @@ -150,7 +150,6 @@ export class UmbDashboardExamineSearcherElement extends UmbContextConsumerMixin( const res = await SearchResource.getSearchSearcherBySearcherNameSearch({ searcherName: this.searcherName, query: this._searchInput.value, - take: 100, }); const pagedSearchResults = res.items as PagedSearchResult[]; this._searchResults = pagedSearchResults[0].items;