-
- {(() => {
- const wg = this.state.enabledWorkgroups;
- if (wg.length === 0) {
- return ;
- } else if (wg.length === 1) {
- return wg[0].workgroup;
- }
- return (
- {
- this.setState({
- workgroup: data.value,
- });
- }}
- options={wg
- .filter(w => w.roles.indexOf("EDIT") >= 0)
- .map(wg => ({
- key: wg["id"],
- text: wg["workgroup"],
- value: wg["id"],
- }))}
- simple
- value={this.state.workgroup}
- />
- );
- })()}
-
-
-