From 8889d5a456fa67cf3d3b2db2d527848147b4b06f Mon Sep 17 00:00:00 2001 From: vexorian Date: Mon, 15 Mar 2021 00:03:55 -0400 Subject: [PATCH] #263 Remove duplicates in programming before sending to random slots endpoint --- web/directives/channel-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/directives/channel-config.js b/web/directives/channel-config.js index 9f3118f..2dc63a4 100644 --- a/web/directives/channel-config.js +++ b/web/directives/channel-config.js @@ -1886,7 +1886,8 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions) { scope.timeSlots.startDialog( progs, scope.maxSize, scope.channel.scheduleBackup ); } scope.onRandomSlotsButtonClick = () => { - scope.randomSlots.startDialog(scope.channel.programs, scope.maxSize, scope.channel.randomScheduleBackup ); + let progs = removeDuplicatesSub( scope.channel.programs ); + scope.randomSlots.startDialog(progs, scope.maxSize, scope.channel.randomScheduleBackup ); } scope.logoOnChange = (event) => {