@abaplint/runtime 2.12.1 → 2.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/types/table.js +6 -0
- package/package.json +1 -1
package/build/src/types/table.js
CHANGED
|
@@ -159,6 +159,12 @@ class HashedTable {
|
|
|
159
159
|
const isStructured = tableRowType instanceof structure_1.Structure;
|
|
160
160
|
for (const k of this.options.primaryKey.keyFields) {
|
|
161
161
|
let val = data[k.toLowerCase()];
|
|
162
|
+
if (val === undefined
|
|
163
|
+
&& tableRowType.get()[k.toLowerCase()] instanceof structure_1.Structure
|
|
164
|
+
&& Object.keys(tableRowType.get()[k.toLowerCase()].get()).length === 1) {
|
|
165
|
+
// todo: this might need to be extended and fixed
|
|
166
|
+
val = data[Object.keys(tableRowType.get()[k.toLowerCase()].get())[0]];
|
|
167
|
+
}
|
|
162
168
|
// convert to correct type, eg Chars have specific length, or rounding,
|
|
163
169
|
if (k === "TABLE_LINE") {
|
|
164
170
|
const row = tableRowType.clone();
|