mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Handle unhandled promises that lead to unable to login
This commit is contained in:
parent
052db5d748
commit
1ea6425cd1
2 changed files with 7 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ export const handle: Handle = async ({ event, resolve }) => {
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('Error [handle]');
|
console.log('Error [handle]', error);
|
||||||
return await resolve(event);
|
return await resolve(event);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,10 @@ export const flattenAssetGroupByDate = derived(assetsGroupByDate, ($assetsGroupB
|
||||||
});
|
});
|
||||||
|
|
||||||
export const getAssetsInfo = async () => {
|
export const getAssetsInfo = async () => {
|
||||||
const { data } = await api.assetApi.getAllAssets();
|
try {
|
||||||
assets.set(data);
|
const { data } = await api.assetApi.getAllAssets();
|
||||||
|
assets.set(data);
|
||||||
|
} catch (error) {
|
||||||
|
console.log('Error [getAssetsInfo]');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue