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) {
|
if (!name || !component) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (component[name] === value) {
|
||||||
|
return
|
||||||
|
}
|
||||||
component[name] = value
|
component[name] = value
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
state.selectedComponentId = component._id
|
state.selectedComponentId = component._id
|
||||||
|
|
Loading…
Reference in New Issue