Open islam3zzat opened 5 months ago
deleting the asset id helps to get the correct format
const onlyAssetNameChanged = {
...category,
assets: category.assets.map((asset, index) => {
const nextAsset = { ...asset }
delete nextAsset.id
if (index !== 1) return nextAsset
return {
...asset,
name: {
...asset.name,
en: asset.name.en + ' - updated',
},
}
}),
}
Support reference number
Description
Expected Behavior
I expect to get array of actions
Current Behavior
Currently I get, array of array of actions
Context
Possible Solution