Fix data error in ChecheAwtis component
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user