Skip to content

Commit

Permalink
Fix collectionscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Kara-Zor-El committed Apr 21, 2024
1 parent 7f61104 commit 64962f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/screens/collectionScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ class _collectionScreenState extends State<collectionScreen> {
),
);
if (result != null) {
snapshot.data[index].isFavorited = result.$1;
snapshot.data[index].downloaded = result.$2;
snapshot.data[index].isFavorited =
result.$1 ?? snapshot.data[index].isFavorited;
snapshot.data[index].downloaded =
result.$2 ?? snapshot.data[index].downloaded;
await isar?.writeTxn(() async {
await isar?.entrys.put(snapshot.data[index]);
});
Expand Down
2 changes: 1 addition & 1 deletion submodules/tentacle
Submodule tentacle updated 2 files
+101 −0 Makefile
+8 −8 README.md

0 comments on commit 64962f4

Please sign in to comment.