Skip to content

Commit 28fd126

Browse files
authored
Fix error when classSubscriptions is undefined
1 parent 1eee7f1 commit 28fd126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveQuery/ParseLiveQueryServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ class ParseLiveQueryServer {
928928
subscription.deleteClientSubscription(parseWebsocket.clientId, requestId);
929929
// If there is no client which is subscribing this subscription, remove it from subscriptions
930930
const classSubscriptions = this.subscriptions.get(className);
931-
if (!subscription.hasSubscribingClient()) {
931+
if (!subscription.hasSubscribingClient() && classSubscriptions) {
932932
classSubscriptions.delete(subscription.hash);
933933
}
934934
// If there is no subscriptions under this class, remove it from subscriptions

0 commit comments

Comments
 (0)