mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-09 23:01:07 +00:00
Fix Kitsu
Resolved an issue where items could not be added to the tracker due to the use of an incorrect ID. This caused `parseTrackResponse()` to fail in locating the 'included' key within `jsonResponse`, leading to a null return. As a result, an exception was thrown in `tracker_widget.dart` at line 134 when accessing `widget.trackRes.title!,` triggering a _TypeError (Null check operator used on a null value)_.
This commit is contained in:
parent
40a1697e86
commit
e9af533a8d
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ class Kitsu extends _$Kitsu {
|
|||
final accessToken = _getAccessToken();
|
||||
|
||||
final url = Uri.parse(
|
||||
'${_baseUrl}library-entries?filter[${type}_id]=${track.libraryId}&filter[user_id]=$userId&include=$type',
|
||||
'${_baseUrl}library-entries?filter[${type}_id]=${track.mediaId}&filter[user_id]=$userId&include=$type',
|
||||
);
|
||||
Response response = await _makeGetRequest(url, accessToken);
|
||||
if (response.statusCode == 200) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue