Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1046 Zobrazení

When I call query to get data, my data:


 
const [dataRoom, setDataRoom] = useState({
​id: 0,
​image: '',
​imageAttachment = [{
​id: 0,
​image1920: ''
​}] 
})
 

Result: 

		​{
​"data": {
​"MyModel": [
{
​"id": 143,
​"imageAttachment": [
​​​{
​​"id": 132
​}​,
​​{
​"id": 133
​​}
​]
​}
​]
​}
}

I want to create new array:

Data = [
​{
​"id": 143,
​},
​{
​"id": 132
​},
​{
​"id": 133
​}
]
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 24
2234
1
srp 22
3039
0
kvě 17
7697
1
bře 15
4097
2
bře 15
4624