From 5c7b3a7cc77f590301165a443a27b110073c2bc9 Mon Sep 17 00:00:00 2001 From: pa Date: Sat, 13 Dec 2025 18:02:36 +0900 Subject: [PATCH] fix: player list sorting failure (#1533) --- src/stores/instance.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/stores/instance.js b/src/stores/instance.js index 69161dd7..24f3dc8a 100644 --- a/src/stores/instance.js +++ b/src/stores/instance.js @@ -83,20 +83,21 @@ export const useInstanceStore = defineStore('Instance', () => { const instanceJoinHistory = reactive(new Map()); const currentInstanceUsersData = ref([]); + + const currentInstanceUsersTableProps = reactive({ + stripe: true, + size: 'small', + defaultSort: { + prop: 'timer', + order: 'descending' + } + }); const currentInstanceUsersTable = computed(() => { return { data: currentInstanceWorld.value.ref.id ? currentInstanceUsersData.value : [], - tableProps: { - stripe: true, - size: 'small', - defaultSort: { - prop: 'timer', - order: 'descending' - } - }, - layout: 'table' + tableProps: currentInstanceUsersTableProps }; });