modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 16:32:53 +02:00
parent 403ef7b304
commit 9699005e9e

View File

@ -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();
}, },