Do not mutate state directly

Lines 75 to 147 see below-- throws a “Do not mutate state directly. Use setState() react/no-direct-mutation-state.” Compile Warning.

if (this.state.field == null) {
this.state.field = this.props.packTypeName_ed;

Needs to Change to ——

if (this.state.field == null) {
field = this.props.packTypeName_ed;


Ah yeah, you are right. That needs to be fixed. Thanks for pointing it out!