From d3f6af07754f75c578dc11e8ea4815ad91f0cac4 Mon Sep 17 00:00:00 2001 From: Luan Date: Sun, 10 Nov 2024 04:18:58 -0300 Subject: [PATCH] fix(UnifiedSharePanel): Check if `thirdPartyNetworkSection` exists Oops. --- src/parser/classes/UnifiedSharePanel .ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/classes/UnifiedSharePanel .ts b/src/parser/classes/UnifiedSharePanel .ts index 1db210585..2ce5668b2 100644 --- a/src/parser/classes/UnifiedSharePanel .ts +++ b/src/parser/classes/UnifiedSharePanel .ts @@ -23,7 +23,7 @@ export default class UnifiedSharePanel extends YTNode { super(); const contents = data.contents.find((content: RawNode) => content.thirdPartyNetworkSection); - if (!contents) { + if (contents) { this.third_party_network_section = { share_target_container: Parser.parseItem(contents.thirdPartyNetworkSection.shareTargetContainer, ThirdPartyShareTargetSection), copy_link_container: Parser.parseItem(contents.thirdPartyNetworkSection.copyLinkContainer, CopyLink),