Let null and blank strings be saved as they are
This commit is contained in:
parent
5863d069ca
commit
a790d6cd74
|
@ -305,12 +305,7 @@ export class ExternalRequest {
|
||||||
manyRelationships: ManyRelationship[] = []
|
manyRelationships: ManyRelationship[] = []
|
||||||
for (let [key, field] of Object.entries(table.schema)) {
|
for (let [key, field] of Object.entries(table.schema)) {
|
||||||
// if set already, or not set just skip it
|
// if set already, or not set just skip it
|
||||||
if (row[key] == null || newRow[key] || !isEditableColumn(field)) {
|
if (row[key] === undefined || newRow[key] || !isEditableColumn(field)) {
|
||||||
continue
|
|
||||||
}
|
|
||||||
// if its an empty string then it means return the column to null (if possible)
|
|
||||||
if (row[key] === "") {
|
|
||||||
newRow[key] = null
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// parse floats/numbers
|
// parse floats/numbers
|
||||||
|
|
Loading…
Reference in New Issue