added setting favItemIds state on intial load
This commit is contained in:
parent
6b8fc327e1
commit
21f2a7a4df
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,9 @@ export default function Gallery(props) {
|
|||
setData(data);
|
||||
setCollections(collections);
|
||||
setCollectionAndItsLatestFile(collectionAndItsLatestFile);
|
||||
const favItemIds = await getFavItemIds(data);
|
||||
setFavItemIds(favItemIds);
|
||||
|
||||
setLoading(false);
|
||||
setProgress(80);
|
||||
await syncWithRemote();
|
||||
|
|
Loading…
Add table
Reference in a new issue