fix: Torsten's review

This commit is contained in:
Arman committed 2023-04-11 12:33:54 +02:00
1 parent 5bb780bf9a
commit 7485c9311f
1 file changed
-11
-11
View File
@@ -1,23 +1,12 @@
<script lang="ts">
import { Empty } from '$lib/components';
import { CARD_LIMIT } from '$lib/constants';
import { prefs } from '$lib/stores/user';
import { onMount } from 'svelte';
export let offset = 0;
export let total = 0;
export let event: string = null;
let limit = CARD_LIMIT;
onMount(async () => {
await prefs.load();
$prefs?.pageLimit && (limit = $prefs.pageLimit);
});
prefs.subscribe((prefs) => {
prefs?.pageLimit && (limit = prefs.pageLimit);
});
</script>
<ul