Features/trigger widget #101
@ -21,7 +21,7 @@ export default function(state = initialState, action: {type: any, payload: any})
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
activeChannel: state.triggerChannel + 1
|
triggerChannel: state.triggerChannel + 1
|
||||||
};
|
};
|
||||||
case "trigger/decreaseChannel":
|
case "trigger/decreaseChannel":
|
||||||
if (state.triggerChannel == 1) {
|
if (state.triggerChannel == 1) {
|
||||||
@ -29,7 +29,7 @@ export default function(state = initialState, action: {type: any, payload: any})
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
activeChannel: state.triggerChannel - 1
|
triggerChannel: state.triggerChannel - 1
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
|
Loading…
Reference in New Issue
Block a user