Fix data error in ChecheAwtis component

This commit is contained in:
2023-07-22 13:47:46 +04:00
parent 7a1ca5bf4f
commit a0a9c5cfb6
+2 -2
View File
@@ -28,7 +28,7 @@ export default function ChecheAwtis() {
(async () => {
try {
const data = await jwennToutAwtis()
const filteredData = data.data.map(artiste => {
const filteredData = data.map(artiste => {
const firstLetter = artiste.attributes.alias[0].toUpperCase()
return {
firstLetter: /\d/.test(firstLetter) ? '0-9' : firstLetter,
@@ -49,7 +49,7 @@ export default function ChecheAwtis() {
}, [loading])
return (
<Container sx={{display: 'flex', justifyContent: 'center', marginBlock: 3}}>
<Container sx={{display: 'flex', justifyContent: 'center', marginBottom: 3}}>
<Autocomplete
autoHighlight
disableClearable