Skip to content

Commit

Permalink
$mol_view_tree2 refactor, hyoo-ru/mam_mol#646
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Dec 3, 2023
1 parent 0641a92 commit 62d201e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scout.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace $.$$ {
@ $mol_mem
data() {
const text = $mol_fetch.text( 'hyoo/scout/_games.tree' )
const json = $mol_tree.fromString( text ).sub.map( tree => tree.clone({ type : '*' }).toJSON() )
const json = this.$.$mol_tree2_from_string( text ).kids.map( tree => this.$.$mol_tree2_to_json(tree.struct('*')) )
return json as $hyoo_scout_gist[]
}

Expand Down
2 changes: 1 addition & 1 deletion suggest/suggest.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace $.$$ {
content : this.descr() ,
}

const gist = new $mol_tree({ type : 'game' , sub : $mol_tree.fromJSON( data ).sub })
const gist = $mol_tree2.struct('game', $mol_tree2_from_json( data ).kids)

const body = encodeURIComponent( gist.toString() + '\n' )

Expand Down

0 comments on commit 62d201e

Please sign in to comment.