basic XML import works + small fixes

This commit is contained in:
Jan Prochazka
2022-01-30 11:26:10 +01:00
parent 91a77765b6
commit 8bad6da348
7 changed files with 75 additions and 18 deletions

View File

@@ -18,7 +18,7 @@ export class JslGridDisplay extends GridDisplay {
this.filterable = true;
if (structure.columns) {
if (structure?.columns) {
this.columns = _.uniqBy(
structure.columns
.map(col => ({
@@ -39,7 +39,7 @@ export class JslGridDisplay extends GridDisplay {
);
}
if (structure.__isDynamicStructure) {
if (structure?.__isDynamicStructure) {
this.columns = analyseCollectionDisplayColumns(rows, this);
}