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), .notOneOf(existingAppUrls),
} }
} else { } else {
nameValidation = { name: string.required(nameError) } nameValidation = { name: string().required(nameError) }
} }
}) })
</script> </script>

View File

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

View File

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

View File

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

View File

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