beautification des menues de filtres
This commit is contained in:
@@ -66,8 +66,7 @@ const Morceaux = (startingProducts) => {
|
||||
setIsLoading(true);
|
||||
const response = await fetch(url);
|
||||
const json = await response.json();
|
||||
if (json.length > 0)
|
||||
setProducts([...json]);
|
||||
setProducts([...json]);
|
||||
setIsLoading(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user