fix(web): cannot view publlic shared album (#3829)

This commit is contained in:
Alex
2023-08-22 08:05:48 +02:00
committed by GitHub
parent d7f52739e8
commit 3b11be2859
3 changed files with 6 additions and 7 deletions

View File

@@ -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);
};