diff --git a/web/service/base.ts b/web/service/base.ts index 33aebf9cf..5386f9b07 100644 --- a/web/service/base.ts +++ b/web/service/base.ts @@ -467,7 +467,7 @@ export const ssePost = async ( onAgentLog, ) }).catch((e) => { - if (e.toString() !== 'AbortError: The user aborted a request.' && !e.toString().errorMessage.includes('TypeError: Cannot assign to read only property')) + if (e.toString() !== 'AbortError: The user aborted a request.' && !e.toString().includes('TypeError: Cannot assign to read only property')) Toast.notify({ type: 'error', message: e }) onError?.(e) })