@@ -12,7 +12,7 @@ export default (state: MainLayoutVideoAnnotationState, action: Action) => {
1212 const copyImpliedRegions = ( ) => {
1313 return setIn (
1414 saveToHistory ( state , "Add Keyframe" ) ,
15- [ "keyframes" , state . currentVideoTime ] ,
15+ [ "keyframes" , state . currentVideoTime || 0 ] ,
1616 {
1717 regions : getImpliedVideoRegions (
1818 state . keyframes ,
@@ -46,6 +46,8 @@ export default (state: MainLayoutVideoAnnotationState, action: Action) => {
4646 case "DELETE_KEYFRAME" : {
4747 return setIn ( state , [ "keyframes" ] , without ( state . keyframes , action . time ) )
4848 }
49+ default :
50+ break
4951 }
5052
5153 // Before the user modifies regions, copy the interpolated regions over to a
@@ -55,8 +57,6 @@ export default (state: MainLayoutVideoAnnotationState, action: Action) => {
5557 case "BEGIN_BOX_TRANSFORM" :
5658 case "BEGIN_MOVE_POINT" :
5759 case "BEGIN_MOVE_POLYGON_POINT" :
58- case "BEGIN_BOX_TRANSFORM" :
59- case "BEGIN_MOVE_POLYGON_POINT" :
6060 case "ADD_POLYGON_POINT" :
6161 case "SELECT_REGION" :
6262 case "CHANGE_REGION" :
@@ -69,8 +69,13 @@ export default (state: MainLayoutVideoAnnotationState, action: Action) => {
6969 case "create-polygon" :
7070 case "create-box" :
7171 return copyImpliedRegions ( )
72+ default :
73+ break
7274 }
75+ break
7376 }
77+ default :
78+ break
7479 }
7580 }
7681
0 commit comments