mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 00:03:08 +00:00
fix(app): database studio/empty table count reset
This commit is contained in:
@@ -35,10 +35,12 @@
|
||||
let localColumnDefs = columnDefs
|
||||
let lastTable = table
|
||||
|
||||
$: {
|
||||
$: lastTable != undefined && table && onTableChange()
|
||||
|
||||
function onTableChange() {
|
||||
if (table !== lastTable) {
|
||||
localColumnDefs = []
|
||||
lastTable = table
|
||||
localColumnDefs = []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -230,6 +230,11 @@
|
||||
input: getCountInput(resourceValue, tableValue, dbType, columnDefs, whereClause),
|
||||
id: x.id + '_count'
|
||||
})
|
||||
console.log(
|
||||
x.id,
|
||||
getCountInput(resourceValue, tableValue, dbType, columnDefs, whereClause),
|
||||
columnDefs
|
||||
)
|
||||
r.push({
|
||||
input: getInsertInput(tableValue, columnDefs, resourceValue, dbType),
|
||||
id: x.id + '_insert'
|
||||
|
||||
Reference in New Issue
Block a user