diff --git a/app/client/src/sagas/WebsocketSagas/handleSocketEvent.ts b/app/client/src/sagas/WebsocketSagas/handleSocketEvent.ts index 5c744d351db0..efab21cd26e1 100644 --- a/app/client/src/sagas/WebsocketSagas/handleSocketEvent.ts +++ b/app/client/src/sagas/WebsocketSagas/handleSocketEvent.ts @@ -32,7 +32,7 @@ export default function* handleSocketEvent(event: any) { const { thread } = event.payload[0]; const isForCurrentApplication = - thread?.applicationId === currentApplication.id; + thread?.applicationId === currentApplication?.id; const isCreatedByMe = thread?.authorUsername === currentUser.username; if (!isCreatedByMe && isForCurrentApplication)