diff --git a/app/ui-admin/client/rooms/adminRooms.js b/app/ui-admin/client/rooms/adminRooms.js index f88948a0b60d..dc103caf69cb 100644 --- a/app/ui-admin/client/rooms/adminRooms.js +++ b/app/ui-admin/client/rooms/adminRooms.js @@ -108,8 +108,8 @@ Template.adminRooms.onCreated(function() { template: 'channelSettingsDefault', data() { return { - session: Session.get('adminRoomsSelected'), - data: instance.tabBarData.get(), + room: instance.tabBarData.get().room, + onSuccess: instance.tabBarData.get().onSuccess, }; }, validation() { diff --git a/app/ui-admin/client/rooms/channelSettingsDefault.js b/app/ui-admin/client/rooms/channelSettingsDefault.js index b9430a41687e..e7c3cb4db00e 100644 --- a/app/ui-admin/client/rooms/channelSettingsDefault.js +++ b/app/ui-admin/client/rooms/channelSettingsDefault.js @@ -45,7 +45,7 @@ Template.channelSettingsDefault.events({ 'click .save'(e, t) { e.preventDefault(); - Meteor.call('saveRoomSettings', this.rid, 'default', $('input[name=default]:checked').val(), (err/* , result*/) => { + Meteor.call('saveRoomSettings', Template.instance().room.get()._id, 'default', $('input[name=default]:checked').val(), (err/* , result*/) => { if (err) { return handleError(err); }