Fixing issue with cypress test, fixing a 409 conflict that could occur in table saving - shouldn't happen now.

This commit is contained in:
mike12345567 2021-02-16 18:29:38 +00:00
parent ad49a428b5
commit 1e39a873b2
4 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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 = []

View File

@ -1,7 +1,7 @@
<script>
import { TextButton } from "@budibase/bbui"
export let hideAutocolumns = true
export let hideAutocolumns
let anchor
let dropdown

View File

@ -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