LT-117: Remove the user from reviewers when session timeout

This commit is contained in:
Aysel Afsar committed 2016-04-04 11:06:14 -04:00
1 parent 8ee2eaf644
commit feb7f0972c
3 files changed
+13 -2

No files matched your search

@@ -89,7 +89,7 @@ WorklistTabs.find().observe({
removed: function(tab) {
var contentId = tab.contentid;
var timepointIds = ViewerData[contentId].timepointIds;
if (timepointIds.length > 0) {
if (timepointIds && timepointIds.length > 0) {
timepointIds.forEach(function(timepointId) {
// Remove the current user from Reviewers
Meteor.call('removeReviewer', timepointId);