diff --git a/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts b/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts index f99eeb1a03..1acda46928 100644 --- a/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts +++ b/packages/plugins/@nocobase/plugin-notification-in-app-message/src/client/observables/sse.ts @@ -53,6 +53,7 @@ export const startMsgSSEStreamWithRetry: () => () => void = () => { responseType: 'stream', adapter: 'fetch', }); + if (!res?.data) return; const stream = res.data; const reader = stream.pipeThrough(new TextDecoderStream()).getReader(); retryTimes = 0;