keep the state
This commit is contained in:
parent
0aed203d66
commit
3ff82f2d74
|
@ -50,7 +50,7 @@ export default function Edit({attributes, setAttributes}) {
|
|||
.then(response => response.json())
|
||||
.then(response => {
|
||||
let newData = {...response};
|
||||
setAttributes({data: {standings: newData}});
|
||||
setAttributes({data: {standings: newData, ...attributes.data?.players}});
|
||||
console.log(newData);
|
||||
})
|
||||
.catch(err => console.error(err));
|
||||
|
|
Loading…
Reference in New Issue