diff --git a/packages/ui/src/components/ListView.svelte b/packages/ui/src/components/ListView.svelte index 0ed5d5ee0a..9bec3b4876 100644 --- a/packages/ui/src/components/ListView.svelte +++ b/packages/ui/src/components/ListView.svelte @@ -27,7 +27,7 @@ export let updateOnMouse = true export let lazy = false export let highlightIndex: number | undefined = undefined - export let getKey: (index: number) => string = (index) => index.toString() + const getKey: (index: number) => string = (index) => index.toString() const refs: HTMLElement[] = [] diff --git a/plugins/notification-resources/src/components/inbox/InboxGroupedListView.svelte b/plugins/notification-resources/src/components/inbox/InboxGroupedListView.svelte index 3c58872600..6f0dd47ca2 100644 --- a/plugins/notification-resources/src/components/inbox/InboxGroupedListView.svelte +++ b/plugins/notification-resources/src/components/inbox/InboxGroupedListView.svelte @@ -98,12 +98,6 @@ $: if (element != null) { element.focus() } - - function getContextKey (index: number): string { - const contextId = displayData[index][0] - - return contextId ?? index.toString() - } @@ -118,7 +112,6 @@ kind="full-size" colorsSchema="lumia" lazy={true} - getKey={getContextKey} > {@const contextId = displayData[itemIndex][0]}