Skip to content

Commit

Permalink
fix(UnifiedSharePanel): Check if thirdPartyNetworkSection exists
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
LuanRT committed Nov 10, 2024
1 parent 556c3d6 commit d3f6af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/classes/UnifiedSharePanel .ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit d3f6af0

Please sign in to comment.