Skip to content

Commit

Permalink
fix(web): timeline issues on person page (immich-app#14366)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelheusschen authored Nov 26, 2024
1 parent 25488b3 commit b6ec79c
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,17 @@
data: PageData;
}
let { data = $bindable() }: Props = $props();
let { data }: Props = $props();
let numberOfAssets = $state(data.statistics.assets);
let { isViewing: showAssetViewer } = assetViewingStore;
let assetStore = new AssetStore({
isArchived: false,
personId: data.person.id,
const assetStoreOptions = { isArchived: false, personId: data.person.id };
const assetStore = new AssetStore(assetStoreOptions);
$effect(() => {
assetStoreOptions.personId = data.person.id;
handlePromiseError(assetStore.updateOptions(assetStoreOptions));
});
const assetInteractionStore = createAssetInteractionStore();
Expand Down Expand Up @@ -329,7 +332,6 @@
$effect(() => {
if (person) {
handlePromiseError(updateAssetCount());
handlePromiseError(assetStore.updateOptions({ personId: person.id }));
}
});
Expand Down

0 comments on commit b6ec79c

Please sign in to comment.