From dadd41cb5c221c8c79f1a26a0bebd3d740b51539 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 21 Apr 2023 17:49:25 -0500 Subject: [PATCH] Fix:Podcast episode quick match crash #1711 --- client/components/modals/podcast/tabs/EpisodeDetails.vue | 7 ++++--- server/utils/areEquivalent.js | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/components/modals/podcast/tabs/EpisodeDetails.vue b/client/components/modals/podcast/tabs/EpisodeDetails.vue index debf9155..d7130eba 100644 --- a/client/components/modals/podcast/tabs/EpisodeDetails.vue +++ b/client/components/modals/podcast/tabs/EpisodeDetails.vue @@ -31,9 +31,10 @@ {{ $strings.ButtonSave }} -
-

Episode URL from RSS feed

- {{ enclosureUrl }} +
+ + +

Episode not linked to RSS feed episode

diff --git a/server/utils/areEquivalent.js b/server/utils/areEquivalent.js index fb10463c..94a1901e 100644 --- a/server/utils/areEquivalent.js +++ b/server/utils/areEquivalent.js @@ -25,6 +25,11 @@ module.exports = function areEquivalent(value1, value2, stack = []) { return true; } + // Truthy check to handle value1=null, value2=Object + if ((value1 && !value2) || (!value1 && value2)) { + return false + } + const type1 = typeof value1; // Ensure types match