Skip to content

Commit e31c753

Browse files
authoredFeb 3, 2025··
C2-25226: Fix OpenFin unregistered intent listener (#2282)
1 parent 1c80348 commit e31c753

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎src/app/openfin-handler.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,11 @@ export class OpenfinHandler {
115115
*/
116116
public async unregisterIntentHandler(uuid: UUID) {
117117
const subscription = this.intentHandlerSubscriptions.get(uuid);
118-
119-
const response = await subscription.unsubscribe();
120-
this.intentHandlerSubscriptions.delete(uuid);
121-
return response;
118+
if (subscription) {
119+
const response = await subscription.unsubscribe();
120+
this.intentHandlerSubscriptions.delete(uuid);
121+
return response;
122+
}
122123
}
123124

124125
/**

0 commit comments

Comments
 (0)
Please sign in to comment.