File tree 6 files changed +12
-6
lines changed
6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ JSONTableDelegate.fetchProperties = async () => {
34
34
const _createColumn = (propertyInfo : TablePropertyInfo , table : Table ) => {
35
35
const name = propertyInfo .key
36
36
const id = table .getId () + " ---col-" + name
37
- return Element .getElementById (id ) ?? new Column (id , {
37
+ const column = Element .getElementById (id ) as Column
38
+ return column ?? new Column (id , {
38
39
propertyKey: name ,
39
40
header: propertyInfo .label ,
40
41
template: new Text ({
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ JSONTableDelegate.fetchProperties = async () => {
18
18
const _createColumn = ( propertyInfo :TablePropertyInfo , table :Table ) => {
19
19
const name = propertyInfo . key
20
20
const id = table . getId ( ) + "---col-" + name
21
- return Element . getElementById ( id ) ?? new Column ( id , {
21
+ const column = Element . getElementById ( id ) as Column
22
+ return column ?? new Column ( id , {
22
23
propertyKey : name ,
23
24
header : propertyInfo . label ,
24
25
template : new Text ( {
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ JSONTableDelegate.fetchProperties = async () => {
21
21
const _createColumn = ( propertyInfo :TablePropertyInfo , table :Table ) => {
22
22
const name = propertyInfo . key
23
23
const id = table . getId ( ) + "---col-" + name
24
- return Element . getElementById ( id ) ?? new Column ( id , {
24
+ const column = Element . getElementById ( id ) as Column
25
+ return column ?? new Column ( id , {
25
26
propertyKey : name ,
26
27
header : propertyInfo . label ,
27
28
template : new Text ( {
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ JSONTableDelegate.fetchProperties = async () => {
21
21
const _createColumn = ( propertyInfo :TablePropertyInfo , table :Table ) => {
22
22
const name = propertyInfo . key
23
23
const id = table . getId ( ) + "---col-" + name
24
- return Element . getElementById ( id ) ?? new Column ( id , {
24
+ const column = Element . getElementById ( id ) as Column
25
+ return column ?? new Column ( id , {
25
26
propertyKey : name ,
26
27
header : propertyInfo . label ,
27
28
template : new Text ( {
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ JSONTableDelegate.fetchProperties = async () => {
23
23
const _createColumn = ( propertyInfo :TablePropertyInfo , table :Table ) => {
24
24
const name = propertyInfo . key
25
25
const id = table . getId ( ) + "---col-" + name
26
- return Element . getElementById ( id ) ?? new Column ( id , {
26
+ const column = Element . getElementById ( id ) as Column
27
+ return column ?? new Column ( id , {
27
28
propertyKey : name ,
28
29
header : propertyInfo . label ,
29
30
template : new Text ( {
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ JSONTableDelegate.fetchProperties = async () => {
23
23
const _createColumn = ( propertyInfo :TablePropertyInfo , table :Table ) => {
24
24
const name = propertyInfo . key
25
25
const id = table . getId ( ) + "---col-" + name
26
- return Element . getElementById ( id ) ?? new Column ( id , {
26
+ const column = Element . getElementById ( id ) as Column
27
+ return column ?? new Column ( id , {
27
28
propertyKey : name ,
28
29
header : propertyInfo . label ,
29
30
template : new Text ( {
You can’t perform that action at this time.
0 commit comments