Prevent unecessary updates to component settings to improve performance

This commit is contained in:
Andrew Kingston 2021-11-16 13:38:47 +00:00
parent b1f5782984
commit 9728c6c947
1 changed files with 3 additions and 0 deletions

View File

@ -620,6 +620,9 @@ export const getFrontendStore = () => {
if (!name || !component) {
return
}
if (component[name] === value) {
return
}
component[name] = value
store.update(state => {
state.selectedComponentId = component._id