Skip to content

Commit c51638c

Browse files
committed
use if for checking ink
1 parent 283481e commit c51638c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/ui.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ export default {
4545
this.notifications.show("Client Connected");
4646
})
4747
);
48-
this.subs.add(this.client.onDetached(() => {
49-
// TODO do we need this optional chaining check?
50-
this.ink && this.ink.Result && this.ink.Result.invalidateAll()
48+
subs.add(client.onDetached(() => {
49+
if (ink) {
50+
ink.Result.invalidateAll()
51+
}
5152
})
5253
);
5354
},

0 commit comments

Comments
 (0)