[assist] Fix JS error when closing an open topic
@@ -2394,7 +2394,9 @@ from desktop.views import _ko
self.selectedTopic = ko.observable();
var selectedSub = self.selectedTopic.subscribe(function (newTopic) {
+ if (newTopic) {
newTopic.load();
+ }
});
self.disposals.push(function () {
