mirror of
https://github.com/immich-app/immich.git
synced 2025-01-16 00:36:47 +01:00
fix(web): timeline issues on person page (#14366)
This commit is contained in:
parent
25488b3138
commit
b6ec79cbdd
1 changed files with 7 additions and 5 deletions
|
@ -63,14 +63,17 @@
|
||||||
data: PageData;
|
data: PageData;
|
||||||
}
|
}
|
||||||
|
|
||||||
let { data = $bindable() }: Props = $props();
|
let { data }: Props = $props();
|
||||||
|
|
||||||
let numberOfAssets = $state(data.statistics.assets);
|
let numberOfAssets = $state(data.statistics.assets);
|
||||||
let { isViewing: showAssetViewer } = assetViewingStore;
|
let { isViewing: showAssetViewer } = assetViewingStore;
|
||||||
|
|
||||||
let assetStore = new AssetStore({
|
const assetStoreOptions = { isArchived: false, personId: data.person.id };
|
||||||
isArchived: false,
|
const assetStore = new AssetStore(assetStoreOptions);
|
||||||
personId: data.person.id,
|
|
||||||
|
$effect(() => {
|
||||||
|
assetStoreOptions.personId = data.person.id;
|
||||||
|
handlePromiseError(assetStore.updateOptions(assetStoreOptions));
|
||||||
});
|
});
|
||||||
|
|
||||||
const assetInteractionStore = createAssetInteractionStore();
|
const assetInteractionStore = createAssetInteractionStore();
|
||||||
|
@ -329,7 +332,6 @@
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (person) {
|
if (person) {
|
||||||
handlePromiseError(updateAssetCount());
|
handlePromiseError(updateAssetCount());
|
||||||
handlePromiseError(assetStore.updateOptions({ personId: person.id }));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue