diff --git a/src/components/ItemList.svelte b/src/components/ItemList.svelte index d22cda3be..813388b40 100644 --- a/src/components/ItemList.svelte +++ b/src/components/ItemList.svelte @@ -10,7 +10,7 @@ import Label from "./Label.svelte"; import { filterUncollectedItems } from "../state/filter"; - import { isExpired } from "../state/metrics"; + import { isExpired, isRemoved } from "../state/items"; import { pageState, updateURLState } from "../state/stores"; let DEFAULT_ITEMS_PER_PAGE = 20; @@ -21,7 +21,7 @@ export let showFilter = true; - let filteredItems = items.filter((item) => !isExpired(item.expires)); + let filteredItems = items.filter((item) => !isExpired(item)); let pagedItems; let paginated = true; let search; @@ -189,9 +189,9 @@ /> {/each} {/if} - {#if !item.in_source} + {#if isRemoved(item)}