Skip to content

Commit 2601696

Browse files
committed
pushing 11.0 to master
1 parent f57cac8 commit 2601696

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/src/containers/CustomizationPanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
5151

5252
const currFocus = state.components
5353
.find((el) => {
54-
return el.id === state.canvasFocus.componentId
54+
return el.id === state.canvasFocus.componentId;
5555
})
5656
.children.find((el) => {
57-
return el.childId === state.canvasFocus.componentId;
57+
return el.childId === state.canvasFocus.childId;
5858
});
5959

6060
useEffect( () => {
6161
currFocus?.attributes?.compLink && setCompLink(currFocus.attributes.compLink);
62-
}, [currFocus?.attributes?.compLink]);
62+
}, [state]);
6363

6464
//Miko -- save properties of nested div
6565
function deepIterate(arr) {

app/src/reducers/componentReducer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ const reducer = (state: State, action: Action) => {
397397
const canvasFocus = { ...state.canvasFocus, componentId, childId };
398398
//makes it so the code preview will update when clicking on a new component
399399
const components = state.components.map(element => {
400-
console.log('element', element);
401400
return Object.assign({}, element);
402401
});
403402
return { ...state, components, canvasFocus };

0 commit comments

Comments
 (0)