Skip to content

Commit 201fa45

Browse files
committed
small fixes
1 parent 7f84fe6 commit 201fa45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/reducers/componentReducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const reducer = (state: State, action: Action) => {
105105
return isChild;
106106
}
107107

108-
const updateIds = (components: Array<Object>) => {
108+
const updateIds = (components: Component[]) => {
109109
components.forEach((comp, i) => comp.id = i + 1);
110110
}
111111

@@ -340,7 +340,7 @@ const reducer = (state: State, action: Action) => {
340340
return { ...state }
341341
}
342342
// filter out components that don't match id
343-
const components: Array<Object> = [...state.components].filter(comp => comp.id != id);
343+
const components: Component[] = [...state.components].filter(comp => comp.id != id);
344344

345345
updateIds(components);
346346

0 commit comments

Comments
 (0)