1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Remove pointless shallow clone

This commit is contained in:
Andrew Kingston 2023-07-17 16:57:56 +01:00
parent 3a37433427
commit 4425c59929

View file

@ -29,7 +29,7 @@
const eject = () => {
// Start the new structure with the root component
const rootMap = structureLookupMap[$component.id] || {}
let definition = { ...Object.values(rootMap)[0]?.instance }
let definition = Object.values(rootMap)[0]?.instance
if (!definition) {
return
}