Skip to content

Commit

Permalink
fix(radarr): (queue) allow loading queue list when associated movie i…
Browse files Browse the repository at this point in the history
…s not found
  • Loading branch information
JagandeepBrar committed Jul 10, 2022
1 parent dab4556 commit 22bf728
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions assets/localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"lunasea.Edge": "Edge",
"lunasea.Error": "Error",
"lunasea.ExternalModules": "External Modules",
"lunasea.Features": "Features",
"lunasea.Fixes": "Fixes",
"lunasea.FullChangelog": "Full Changelog",
"lunasea.GoBack": "Go Back",
Expand Down Expand Up @@ -91,6 +92,7 @@
"lunasea.OneYear": "1 Year",
"lunasea.OneYearAgo": "1 Year Ago",
"lunasea.Options": "Options",
"lunasea.Other": "Other",
"lunasea.Page": "Page",
"lunasea.PlatformSpecific": "Platform-Specific",
"lunasea.PleaseTryAgain": "Please Try Again",
Expand Down
5 changes: 3 additions & 2 deletions lib/modules/radarr/routes/queue/widgets/queue_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class RadarrQueueTile extends StatelessWidget {
_subtitle2(),
],
expandedHighlightedNodes: _highlightedNodes(),
expandedTableContent: _tableContent(movie!),
expandedTableContent: _tableContent(movie),
expandedTableButtons: _tableButtons(context),
collapsedTrailing: LunaIconButton(
icon: record.lunaStatusIcon,
Expand Down Expand Up @@ -65,7 +65,8 @@ class RadarrQueueTile extends StatelessWidget {
);
}

List<LunaTableContent> _tableContent(RadarrMovie movie) {
List<LunaTableContent> _tableContent(RadarrMovie? movie) {
if (movie == null) return [];
return [
LunaTableContent(
title: 'radarr.Movie'.tr(), body: record.lunaMovieTitle(movie)),
Expand Down
2 changes: 2 additions & 0 deletions localization/lunasea/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lunasea.Edge": "Edge",
"lunasea.Error": "Error",
"lunasea.ExternalModules": "External Modules",
"lunasea.Features": "Features",
"lunasea.Fixes": "Fixes",
"lunasea.FullChangelog": "Full Changelog",
"lunasea.GoBack": "Go Back",
Expand Down Expand Up @@ -70,6 +71,7 @@
"lunasea.OneYear": "1 Year",
"lunasea.OneYearAgo": "1 Year Ago",
"lunasea.Options": "Options",
"lunasea.Other": "Other",
"lunasea.Page": "Page",
"lunasea.PlatformSpecific": "Platform-Specific",
"lunasea.PleaseTryAgain": "Please Try Again",
Expand Down

0 comments on commit 22bf728

Please sign in to comment.