modified code
This commit is contained in:
parent
403ef7b304
commit
9699005e9e
@ -65,16 +65,13 @@
|
|||||||
this.song_style = "isActivate";
|
this.song_style = "isActivate";
|
||||||
this.state.search = "songs";
|
this.state.search = "songs";
|
||||||
}
|
}
|
||||||
if(old_search != this.state.search) {
|
if(old_search != this.state.search){this.list();}
|
||||||
this.list();
|
|
||||||
}
|
|
||||||
this.update();
|
this.update();
|
||||||
},
|
},
|
||||||
async list(){
|
async list(){
|
||||||
let data = await props.items;
|
|
||||||
this.state = {
|
this.state = {
|
||||||
placeholder: "Rechercher dans les songs",
|
placeholder: "Rechercher dans les songs",
|
||||||
items: data.results;
|
items: await this.fetchData()
|
||||||
};
|
};
|
||||||
this.update();
|
this.update();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user