Skip to content

Commit 2b6dae3

Browse files
committed
Fixed action type issue with toggle
1 parent 8caa7c3 commit 2b6dae3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/actionTypes/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ export const UPDATE_HTML_ATTR: string = 'UPDATE_HTML_ATTR';
2929
export const UPDATE_CHILDREN_SORT: string = 'UPDATE_CHILDREN_SORT';
3030
export const CHANGE_IMAGE_SOURCE: string = 'CHANGE_IMAGE_SOURCE';
3131
export const DELETE_IMAGE: string = 'DELETE_IMAGE';
32+
export const TOGGLE_STATE: string = 'TOGGLE_STATE';

src/utils/componentReducer.util.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ export const toggleComponentState = (
415415
element.stateful = !element.stateful;
416416
}
417417
});
418-
419418
// return state and updated components array
420419
return {
421420
...state,

0 commit comments

Comments
 (0)