Skip to content

Commit

Permalink
check for correct runtime type
Browse files Browse the repository at this point in the history
  • Loading branch information
qcasey committed Jan 24, 2022
1 parent 47dda07 commit 39e0ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/documents_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class _DocumentsRouteState extends State<DocumentsRoute> {
onTap: () {
removeCurrentFilter();
setState(() {
if (i.runtimeType == Tag) this.tagFilter = i as Tag?;
if (i.runtimeType == OgTag) this.tagFilter = i as Tag?;
if (i.runtimeType == Correspondent)
this.correspondentFilter = i as Correspondent?;
this.searchOpen = false;
Expand Down

0 comments on commit 39e0ede

Please sign in to comment.