Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Suggestions error use new error toast

shamoona436caf2ad8f
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
)
},
})