diff --git a/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesInfoDialog.vue b/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesInfoDialog.vue index f8a985c9..d7956938 100644 --- a/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesInfoDialog.vue +++ b/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesInfoDialog.vue @@ -153,9 +153,7 @@ ); const totalItems = computed(() => { - const length = table.getFilteredRowModel().rows.length; - const max = vrcxStore.maxTableSize; - return length > max ? max : length; + return table.getFilteredRowModel().rows.length; }); const handlePageSizeChange = (size) => { diff --git a/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesListDialog.vue b/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesListDialog.vue index 852ba1f3..685dc205 100644 --- a/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesListDialog.vue +++ b/src/components/dialogs/PreviousInstancesDialog/PreviousInstancesListDialog.vue @@ -237,9 +237,7 @@ ); const totalItems = computed(() => { - const length = table.getFilteredRowModel().rows.length; - const max = vrcxStore.maxTableSize; - return length > max ? max : length; + return table.getFilteredRowModel().rows.length; }); const handlePageSizeChange = (size) => { diff --git a/src/views/FriendList/FriendList.vue b/src/views/FriendList/FriendList.vue index e7449de1..b3a001e0 100644 --- a/src/views/FriendList/FriendList.vue +++ b/src/views/FriendList/FriendList.vue @@ -124,10 +124,10 @@ import { Button } from '@/components/ui/button'; import { InputGroupField } from '@/components/ui/input-group'; import { Progress } from '@/components/ui/progress'; + import { Star } from 'lucide-vue-next'; import { storeToRefs } from 'pinia'; import { toast } from 'vue-sonner'; import { useI18n } from 'vue-i18n'; - import { Star } from 'lucide-vue-next'; import { useRoute } from 'vue-router'; import { @@ -217,9 +217,7 @@ }); const totalItems = computed(() => { - const length = table.getFilteredRowModel().rows.length; - const max = vrcxStore.maxTableSize; - return length > max ? max : length; + return table.getFilteredRowModel().rows.length; }); const handlePageSizeChange = (size) => { diff --git a/src/views/FriendLog/FriendLog.vue b/src/views/FriendLog/FriendLog.vue index 90814601..97b12d19 100644 --- a/src/views/FriendLog/FriendLog.vue +++ b/src/views/FriendLog/FriendLog.vue @@ -191,8 +191,7 @@ }); const totalItems = computed(() => { - const length = table.getFilteredRowModel().rows.length; - return length; + return table.getFilteredRowModel().rows.length; }); const handlePageSizeChange = (size) => { diff --git a/src/views/Moderation/Moderation.vue b/src/views/Moderation/Moderation.vue index 9c0c4eb4..63f4e2d6 100644 --- a/src/views/Moderation/Moderation.vue +++ b/src/views/Moderation/Moderation.vue @@ -173,9 +173,7 @@ }); const totalItems = computed(() => { - const length = table.getFilteredRowModel().rows.length; - const max = vrcxStore.maxTableSize; - return length > max && length < max + 51 ? max : length; + return table.getFilteredRowModel().rows.length; }); const handlePageSizeChange = (size) => {