Skip to content

Commit d8208ae

Browse files
committed
Cleaned up Canvas.tsx
1 parent 55665d8 commit d8208ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/components/main/Canvas.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function Canvas() {
1616
);
1717

1818
// changes focus of the canvas to a new component / child
19-
const changeFocus = (componentId?: number, childId?: number | null, e?: string) => {
20-
dispatch({ type: 'CHANGE FOCUS', payload: { componentId, childId, e, /*state*/ } });
19+
const changeFocus = (componentId?: number, childId?: number | null) => {
20+
dispatch({ type: 'CHANGE FOCUS', payload: { componentId, childId } });
2121
};
2222
// onClickHandler is responsible for changing the focused component and child component
2323
function onClickHandler(event) {

0 commit comments

Comments
 (0)