From 027e9faaa8b26e24cb76cb3e21f2e57c9a9c33cf Mon Sep 17 00:00:00 2001 From: vexorian Date: Thu, 21 Jan 2021 23:54:19 -0400 Subject: [PATCH] Fix enabling watermark not always loading the defaults. --- web/directives/channel-config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/directives/channel-config.js b/web/directives/channel-config.js index 0cb41b8..37f139a 100644 --- a/web/directives/channel-config.js +++ b/web/directives/channel-config.js @@ -88,7 +88,10 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions) { } else { scope.beforeEditChannelNumber = scope.channel.number - if (typeof(scope.channel.watermark) === 'undefined') { + if ( + (typeof(scope.channel.watermark) === 'undefined') + || (scope.channel.watermark.enabled !== true) + ) { scope.channel.watermark = defaultWatermark(); }