From a436caf2ad8fe3b1fe65d92bba47785374065372 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 20 May 2023 10:15:53 -0700 Subject: [PATCH] Suggestions error use new error toast --- .../components/document-detail/document-detail.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) }, })