prevent sql relationship delete from erroring
This commit is contained in:
parent
2887a42f7a
commit
0df6d24edf
|
@ -96,7 +96,7 @@
|
||||||
"lodash": "4.17.21",
|
"lodash": "4.17.21",
|
||||||
"mongodb": "3.6.3",
|
"mongodb": "3.6.3",
|
||||||
"mssql": "6.2.3",
|
"mssql": "6.2.3",
|
||||||
"mysql": "2.18.1",
|
"mysql": "^2.18.1",
|
||||||
"node-fetch": "2.6.0",
|
"node-fetch": "2.6.0",
|
||||||
"open": "7.3.0",
|
"open": "7.3.0",
|
||||||
"pg": "8.5.1",
|
"pg": "8.5.1",
|
||||||
|
|
|
@ -264,7 +264,7 @@ module External {
|
||||||
}
|
}
|
||||||
|
|
||||||
outputProcessing(
|
outputProcessing(
|
||||||
rows: Row[],
|
rows: Row[] = [],
|
||||||
table: Table,
|
table: Table,
|
||||||
relationships: RelationshipsJson[]
|
relationships: RelationshipsJson[]
|
||||||
) {
|
) {
|
||||||
|
@ -524,7 +524,7 @@ module External {
|
||||||
// can't really use response right now
|
// can't really use response right now
|
||||||
const response = await makeExternalQuery(appId, json)
|
const response = await makeExternalQuery(appId, json)
|
||||||
// handle many to many relationships now if we know the ID (could be auto increment)
|
// handle many to many relationships now if we know the ID (could be auto increment)
|
||||||
if (processed.manyRelationships) {
|
if (processed.manyRelationships && response) {
|
||||||
await this.handleManyRelationships(
|
await this.handleManyRelationships(
|
||||||
response[0],
|
response[0],
|
||||||
processed.manyRelationships
|
processed.manyRelationships
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -29,6 +29,8 @@
|
||||||
valueColumn,
|
valueColumn,
|
||||||
customOptions
|
customOptions
|
||||||
)
|
)
|
||||||
|
|
||||||
|
$: console.log(options)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Field
|
<Field
|
||||||
|
|
Loading…
Reference in New Issue