Skip to content

Commit

Permalink
Fixed bug where tile would be written without stores & root stats wou…
Browse files Browse the repository at this point in the history
…ld be incorrectly updated when resolved store set is empty
  • Loading branch information
JaffaKetchup committed Jan 4, 2025
1 parent 36dd576 commit 476240d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Map<String, bool> _sharedWriteSingleTile({
),
];

if (compiledStoreNames.isEmpty) return const {};

final tilesQuery = tiles.query(ObjectBoxTile_.url.equals(url)).build();
final storeQuery =
storesBox.query(ObjectBoxStore_.name.oneOf(compiledStoreNames)).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ Future<Uint8List> _internalTileBrowser({
}
}

// TODO: This isn't resolving properly!
// Find the stores that need to have this tile written to, depending on
// their read/write settings
// At this point, we've downloaded the tile anyway, so we might as well
Expand Down

0 comments on commit 476240d

Please sign in to comment.