Skip to content

Commit

Permalink
Correctly parse realm.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyebrowsoffire committed Dec 17, 2024
1 parent 1a4ca3c commit 652a754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_ui/dev/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class LuciConfig {
factory LuciConfig.fromJson(String contextJson) {
print('luci context json: $contextJson');
final json = jsonDecode(contextJson) as Map<String, Object?>;
final LuciRealm realm = switch (json['realm']) {
final LuciRealm realm = switch ((json['realm'] as Map<String, Object?>?)?['name']) {
'flutter:prod' => LuciRealm.Prod,
'flutter:staging' => LuciRealm.Staging,
'flutter:try' => LuciRealm.Try,
Expand Down

0 comments on commit 652a754

Please sign in to comment.