Skip to content

Commit

Permalink
$mol_list_demo_tree: fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Oct 7, 2023
1 parent e3426a9 commit 16c3b94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion list/demo/tree/tree.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ namespace $.$$ {
@ $mol_mem_key
row_content( id : number[] ) {
$mol_wire_solid()
return [ ... $mol_range2( index => this.Row([ ... id , index ]) , ()=> Math.floor( Math.random() * 10 + 5 ) ) ]
return Array.from(
{ length: Math.floor( Math.random() * 10 + 5 ) },
( _, index )=> this.Row([ ... id , index ]),
)
}

@ $mol_mem_key
Expand Down

0 comments on commit 16c3b94

Please sign in to comment.