@abaplint/runtime 2.4.10 → 2.4.11
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 +9 -7
- package/package.json +1 -1
package/build/src/types/table.js
CHANGED
|
@@ -164,6 +164,15 @@ class Table {
|
|
|
164
164
|
ref.assign(item.getPointer());
|
|
165
165
|
this.value.push(ref);
|
|
166
166
|
return ref;
|
|
167
|
+
// @ts-ignore
|
|
168
|
+
// eslint-disable-next-line max-len
|
|
169
|
+
}
|
|
170
|
+
else if (this.isStructured === true && item.getQualifiedName && this.rowType.getQualifiedName && item.getQualifiedName() !== "" && item.getQualifiedName() === this.rowType.getQualifiedName()) {
|
|
171
|
+
// hmm, moving this to getValue() should, but does not work
|
|
172
|
+
// types match, so no need to do conversions, just clone the item
|
|
173
|
+
const val = (0, clone_1.clone)(item);
|
|
174
|
+
this.value.push(val);
|
|
175
|
+
return val;
|
|
167
176
|
}
|
|
168
177
|
else {
|
|
169
178
|
const val = this.getValue(item);
|
|
@@ -194,13 +203,6 @@ class Table {
|
|
|
194
203
|
const tmp = (0, clone_1.clone)(this.getRowType());
|
|
195
204
|
tmp.set(new string_1.String().set(item));
|
|
196
205
|
return tmp;
|
|
197
|
-
// @ts-ignore
|
|
198
|
-
// eslint-disable-next-line max-len
|
|
199
|
-
}
|
|
200
|
-
else if (this.isStructured === true && item.getQualifiedName && this.rowType.getQualifiedName && item.getQualifiedName() === this.rowType.getQualifiedName()) {
|
|
201
|
-
// types match, so no need to do conversions, just clone the item
|
|
202
|
-
const val = (0, clone_1.clone)(item);
|
|
203
|
-
return val;
|
|
204
206
|
}
|
|
205
207
|
else {
|
|
206
208
|
const tmp = (0, clone_1.clone)(this.getRowType());
|