Fix data error in ChecheAwtis component
This commit is contained in:
@@ -28,7 +28,7 @@ export default function ChecheAwtis() {
|
|||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
const data = await jwennToutAwtis()
|
const data = await jwennToutAwtis()
|
||||||
const filteredData = data.data.map(artiste => {
|
const filteredData = data.map(artiste => {
|
||||||
const firstLetter = artiste.attributes.alias[0].toUpperCase()
|
const firstLetter = artiste.attributes.alias[0].toUpperCase()
|
||||||
return {
|
return {
|
||||||
firstLetter: /\d/.test(firstLetter) ? '0-9' : firstLetter,
|
firstLetter: /\d/.test(firstLetter) ? '0-9' : firstLetter,
|
||||||
@@ -49,7 +49,7 @@ export default function ChecheAwtis() {
|
|||||||
}, [loading])
|
}, [loading])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container sx={{display: 'flex', justifyContent: 'center', marginBlock: 3}}>
|
<Container sx={{display: 'flex', justifyContent: 'center', marginBottom: 3}}>
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
autoHighlight
|
autoHighlight
|
||||||
disableClearable
|
disableClearable
|
||||||
|
|||||||
Reference in New Issue
Block a user