Fixing issue with cypress test, fixing a 409 conflict that could occur in table saving - shouldn't happen now.
This commit is contained in:
parent
ad49a428b5
commit
1e39a873b2
|
@ -13,7 +13,7 @@
|
|||
import CreateEditUser from "./modals/CreateEditUser.svelte"
|
||||
import CreateEditRow from "./modals/CreateEditRow.svelte"
|
||||
|
||||
let hideAutocolumns
|
||||
let hideAutocolumns = true
|
||||
let data = []
|
||||
let loading = false
|
||||
$: isUsersTable = $backendUiStore.selectedTable?._id === TableNames.USERS
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
export let allowEditing = false
|
||||
export let loading = false
|
||||
export let theme = "alpine"
|
||||
export let hideAutocolumns = false
|
||||
export let hideAutocolumns
|
||||
|
||||
let columnDefs = []
|
||||
let selectedRows = []
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
import { TextButton } from "@budibase/bbui"
|
||||
|
||||
export let hideAutocolumns = true
|
||||
export let hideAutocolumns
|
||||
|
||||
let anchor
|
||||
let dropdown
|
||||
|
|
|
@ -70,6 +70,8 @@ exports.save = async function(ctx) {
|
|||
let oldTable
|
||||
if (ctx.request.body && ctx.request.body._id) {
|
||||
oldTable = await db.get(ctx.request.body._id)
|
||||
// update _rev just to make sure its always accurate
|
||||
tableToSave._rev = oldTable._rev
|
||||
}
|
||||
|
||||
// make sure that types don't change of a column, have to remove
|
||||
|
|
Loading…
Reference in New Issue