From e2df0b524aa6d1aa5409bf93d49464e4d8c33bf3 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 21 Sep 2023 15:41:40 -0400 Subject: [PATCH] Fix copy paste bug --- CHANGELOG.md | 6 ++++++ .../src/components/ContentNode/ChannelContentNode.bs | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9244bd9b..dc0ccf82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Another bug where the app crashes if an error happens loading channel info + ## [0.12.1] - 2023-09-19 ### Added diff --git a/playlet-lib/src/components/ContentNode/ChannelContentNode.bs b/playlet-lib/src/components/ContentNode/ChannelContentNode.bs index 78f876a2..0a217571 100644 --- a/playlet-lib/src/components/ContentNode/ChannelContentNode.bs +++ b/playlet-lib/src/components/ContentNode/ChannelContentNode.bs @@ -40,9 +40,9 @@ function OnChannelContentTaskResult(output as object) as void end if error = ErrorUtils.Format(error) LogError(error) - playlistId = output.task.input.content.playlistId - message = `Failed to load playlist ${playlistId}\n${error}` - DialogUtils.ShowDialog(message, "Playlist load fail", true) + authorId = output.task.input.content.authorId + message = `Failed to load channel ${authorId}\n${error}` + DialogUtils.ShowDialog(message, "Channel load fail", true) return end if end function