Is there a condition where getComponent(state.toggle) returns undef?  Is it equivalent to implement this as:

var toggleState = (state.toggle) ? state.toggle : 'cumulativeflow';
var btnCmp = this.getComponent(toggleState);