mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-29 14:59:55 +00:00
Fix protected field validation of data sync forms
This commit is contained in:
parent
774cd7efb1
commit
7747ec6fd4
7 changed files with 53 additions and 54 deletions
web-frontend/modules/database/components/dataSync
|
@ -118,7 +118,13 @@ export default {
|
|||
}
|
||||
},
|
||||
async submitted(values) {
|
||||
await this.update(this.table, values, this.syncTableValue)
|
||||
// Remove the `undefined` values, because those contain not updated secrets that
|
||||
// are only meant to be included in the update request if they've changed
|
||||
// because they're not exposed by the backend.
|
||||
const valuesWithoutUndefined = Object.fromEntries(
|
||||
Object.entries(values).filter(([_, v]) => v !== undefined)
|
||||
)
|
||||
await this.update(this.table, valuesWithoutUndefined, this.syncTableValue)
|
||||
if (!this.syncTableValue) {
|
||||
this.completed = true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue