diff --git a/stores/favorite-tiles.ts b/stores/favorite-tiles.ts index 93f9b9e..d42640a 100644 --- a/stores/favorite-tiles.ts +++ b/stores/favorite-tiles.ts @@ -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,