fix: dashbaord reorder

This commit is contained in:
DarkPhoenix2704
2025-09-11 15:12:36 +00:00
parent 2248d43ab5
commit 6a236b4f34

View File

@@ -131,7 +131,11 @@ const setIcon = async (icon: string, table: TableType) => {
...((table.meta as object) || {}),
icon,
}
tables.value.splice(tables.value.indexOf(table), 1, { ...table })
const index = tables.value.findIndex((t) => t.id === table.id)
if (index !== -1) {
tables.value[index] = { ...table }
}
await $api.dbTable.update(table.id as string, {
meta: table.meta,