diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index 60b1ab94b..b08261ca0 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -394,9 +394,9 @@ export class DocumentDetailComponent error: (error) => { this.suggestions = null this.toastService.showError( - $localize`Error retrieving suggestions: ${JSON.stringify( - error - ).slice(0, 500)}` + $localize`Error retrieving suggestions.`, + 10000, + error ) }, })