mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 17:47:10 +00:00
fix: dashbaord reorder
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user