Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sharknoon committed Nov 19, 2024
1 parent b21d20b commit d605a04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stores/favorite-tiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ export const useFavoriteTilesStore = defineStore(
await pocketBase.collection("users").unsubscribe();
});

getCloudFavoriteTiles().then((cloudFavoriteTiles) => {
if (cloudFavoriteTiles === undefined) return;
favoriteTiles.value = cloudFavoriteTiles;
});

return {
favoriteTiles,
isFavorite,
Expand Down

0 comments on commit d605a04

Please sign in to comment.