Skip to content

Commit

Permalink
fix: yt comments not loading properly
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Dec 20, 2023
1 parent 709febf commit 00387df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/youtube/controller/youtube_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ class YoutubeController {

Future<void> _fetchComments(String id, {bool forceRequest = false}) async {
currentTotalCommentsCount.value = null;
currentComments.value = List.filled(20, null);
currentComments
..clear()
..addAll(List.filled(20, null));

// -- Fetching Comments.
final fetchedComments = <YoutubeComment>[];
Expand Down

0 comments on commit 00387df

Please sign in to comment.