modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 16:31:43 +02:00
parent a50efc5181
commit 403ef7b304

View File

@ -71,9 +71,10 @@
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: await this.fetchData() items: data.results;
}; };
this.update(); this.update();
}, },