mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: made total reactive
This commit is contained in:
1 parent
fd42323e8c
commit
71b0aca6d6
1 file changed
+2
-1
@@ -3,9 +3,10 @@
|
||||
|
||||
export let items = [];
|
||||
export let limit = 5;
|
||||
let total = items?.length;
|
||||
|
||||
let offset = 0;
|
||||
|
||||
$: total = items?.length;
|
||||
$: paginatedItems = items.slice(offset, offset + limit);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user