From 16c3b947ee318dd3833fc4a3bbf0be3a3f7385a5 Mon Sep 17 00:00:00 2001 From: jin Date: Sat, 7 Oct 2023 23:24:55 +0300 Subject: [PATCH] $mol_list_demo_tree: fixed error --- list/demo/tree/tree.view.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/list/demo/tree/tree.view.ts b/list/demo/tree/tree.view.ts index ef348e73215..7508065f0a2 100644 --- a/list/demo/tree/tree.view.ts +++ b/list/demo/tree/tree.view.ts @@ -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