Fix: rm invalid errorMessage on e.toString() (#24805)
This commit is contained in:
parent
0fe078d25e
commit
863f3aeb27
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ export const ssePost = async (
|
||||||
onAgentLog,
|
onAgentLog,
|
||||||
)
|
)
|
||||||
}).catch((e) => {
|
}).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 })
|
Toast.notify({ type: 'error', message: e })
|
||||||
onError?.(e)
|
onError?.(e)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue