diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index c7fded233e..58cf480849 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -205,6 +205,9 @@ const data = { } state.styleChangeTimes = 0 state.curComponent = component + if (index !== null && !isNaN(index)) { + state.componentData.splice(index, 1, component) + } state.curComponentIndex = index },