markRaw updates

This commit is contained in:
tugcekucukoglu 2024-10-11 17:11:12 +03:00
parent 848d0337db
commit a745ec7d43
11 changed files with 80 additions and 72 deletions

View file

@ -21,12 +21,10 @@ export default {
},
computed: {
components() {
return this.templateData.components.map((component) => {
return {
...component,
name: markRaw(component.name)
};
});
return this.templateData?.components?.map(({ name, ...rest }) => ({
...rest,
name
}));
}
}
};