From dc38d28b843b43fe144b78d5949c1fa6fdf48b73 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 14:55:23 +0200 Subject: [PATCH] modified code --- index.html | 3 +-- onzer.riot | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 4d5d244..0e300ce 100644 --- a/index.html +++ b/index.html @@ -27,8 +27,7 @@ } riot.compile().then(() => { - riot.mount('onzer', {items: wait_data()} - ); + riot.mount('onzer', {items: wait_data()}); }) diff --git a/onzer.riot b/onzer.riot index 1bbc92b..1876d5c 100644 --- a/onzer.riot +++ b/onzer.riot @@ -33,7 +33,7 @@ console.log(props); this.state = { placeholder: "Rechercher dans les albums", - items: props.results, + items: props.items.results, search: "albums" }; this.paintButton();