From fb8f07e6e97c31c3789f95a95c195d6f46ae749d Mon Sep 17 00:00:00 2001 From: Dinh Ngoc Hien Date: Mon, 9 Oct 2017 21:11:48 +0700 Subject: [PATCH] Update notification preferences when nothing is selected #1276 (#1514) --- .../javascripts/app/controllers/_profile/notification.coffee | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_profile/notification.coffee b/app/assets/javascripts/app/controllers/_profile/notification.coffee index 244a8681e..d19b8ac21 100644 --- a/app/assets/javascripts/app/controllers/_profile/notification.coffee +++ b/app/assets/javascripts/app/controllers/_profile/notification.coffee @@ -134,11 +134,6 @@ class Index extends App.ControllerSubContent online: true } - # validation - if !params['notification_config']['matrix'] - @log('error', 'invalid notification_config, matrix is missing') - return - # check missing channels for key, value of params['notification_config']['matrix'] if !value.channel