mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Handle unhandled promises that lead to unable to login
This commit is contained in:
@@ -22,6 +22,10 @@ export const flattenAssetGroupByDate = derived(assetsGroupByDate, ($assetsGroupB
|
||||
});
|
||||
|
||||
export const getAssetsInfo = async () => {
|
||||
const { data } = await api.assetApi.getAllAssets();
|
||||
assets.set(data);
|
||||
try {
|
||||
const { data } = await api.assetApi.getAllAssets();
|
||||
assets.set(data);
|
||||
} catch (error) {
|
||||
console.log('Error [getAssetsInfo]');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user