Prevent unecessary updates to component settings to improve performance
This commit is contained in:
parent
b1f5782984
commit
9728c6c947
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue