Merge pull request #1017 from Budibase/fix/attachment-issues

Attachment issue fixes
This commit is contained in:
Kevin Åberg Kultalahti 2021-01-30 12:29:46 +01:00 committed by GitHub
commit ec5af43587
5 changed files with 9 additions and 9 deletions

View File

@ -73,7 +73,7 @@
.notOneOf(existingAppUrls),
}
} else {
nameValidation = { name: string.required(nameError) }
nameValidation = { name: string().required(nameError) }
}
})
</script>

View File

@ -20,9 +20,10 @@ const makeApiCall = async ({ method, url, body, json = true }) => {
const requestBody = json ? JSON.stringify(body) : body
let headers = {
Accept: "application/json",
"Content-Type": "application/json",
...(json && { "Content-Type": "application/json" }),
"x-budibase-app-id": window["##BUDIBASE_APP_ID##"],
}
if (!window["##BUDIBASE_IN_BUILDER##"]) {
headers["x-budibase-type"] = "client"
}

View File

@ -38,7 +38,7 @@
"license": "MIT",
"gitHead": "62ebf3cedcd7e9b2494b4f8cbcfb90927609b491",
"dependencies": {
"@budibase/bbui": "^1.52.4",
"@budibase/bbui": "^1.55.1",
"@budibase/svelte-ag-grid": "^0.0.16",
"apexcharts": "^3.22.1",
"flatpickr": "^4.6.6",

View File

@ -135,8 +135,7 @@
}
const updateRow = async row => {
const schema = (await API.fetchTableDefinition(row.tableId)).schema
await API.updateRow(schema, { data: row })
await API.updateRow(row)
}
const deleteRows = async () => {

View File

@ -39,10 +39,10 @@
lodash "^4.17.19"
to-fast-properties "^2.0.0"
"@budibase/bbui@^1.52.4":
version "1.52.4"
resolved "https://registry.yarnpkg.com/@budibase/bbui/-/bbui-1.52.4.tgz#ae3c17e1f49f14e65831703958bcddc6e64afd24"
integrity sha512-/wiv5dSyvXLgy2/zGEslnCsjwE8qqng1D8k5ScSOPEyMab8tzzd1XxfZAN9rp84zIMgAXeH6s5a4j4riR+jVkg==
"@budibase/bbui@^1.55.1":
version "1.55.1"
resolved "https://registry.yarnpkg.com/@budibase/bbui/-/bbui-1.55.1.tgz#291fb6fa10479b49f078d3a911ad0ed42c2e6b12"
integrity sha512-bxsHBwkOqCtuFz89e0hAXwvwycfS4xPPrEge5PxK1Lh3uqetO4bXoIxYaIDjfi2Ku7CYIzEmOwSloNaQWeTF4g==
dependencies:
markdown-it "^12.0.2"
quill "^1.3.7"