mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-05-02 19:48:19 +00:00
fix(web): cannot view publlic shared album (#3829)
This commit is contained in:
@@ -5,8 +5,8 @@ function createAssetViewingStore() {
|
||||
const viewingAssetStoreState = writable<AssetResponseDto>();
|
||||
const viewState = writable<boolean>(false);
|
||||
|
||||
const setAssetId = async (id: string) => {
|
||||
const { data } = await api.assetApi.getAssetById({ id });
|
||||
const setAssetId = async (id: string, key?: string) => {
|
||||
const { data } = await api.assetApi.getAssetById({ id, key });
|
||||
viewingAssetStoreState.set(data);
|
||||
viewState.set(true);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user