cancelToggle(){
    this.setState({
      edit: false,
      Name: this.props.roomType.name,
      Enabled: this.props.roomType.isEnabled,
      Bots: this.props.roomType.bots,
      Settings: JSON.stringify(this.props.roomType.settings, undefined, 2),
      error: null,
    });
  }
/**
   * This removes all the changes the user made while in edit mode
   */
This removes all the changes the user made while in edit mode
This removes all the changes the user made while in edit mode
cancelToggle(){
    this.setState({
      edit: false,
      Name: this.props.roomType.name,
      Enabled: this.props.roomType.isEnabled,
      Bots: this.props.roomType.bots,
      Settings: JSON.stringify(this.props.roomType.settings, undefined, 2),
      error: null,
    });
  }
cancelToggle ( ) { this . setState ( { edit : false , Name : this . props . roomType . name , Enabled : this . props . roomType . isEnabled , Bots : this . props . roomType . bots , Settings : JSON . stringify ( this . props . roomType . settings , undefined , 2 ) , error : null , } ) ; }
This removes all the changes the user made while in edit mode
This removes all the changes the user made while in edit mode