Browse Source

Fixing search human resource role

pull/2/head
Wahyu Ramadhan 2 years ago
parent
commit
aef7f20670
  1. 5
      src/views/SimproV2/CreatedProyek/FormAsignHr.js

5
src/views/SimproV2/CreatedProyek/FormAsignHr.js

@ -140,7 +140,10 @@ const FormAsignHr = ({ openDialog, closeDialog, toggleDialog, idTask, dataEdit,
<Col> <Col>
<FormGroup> <FormGroup>
<Label>Role Human Resource</Label> <Label>Role Human Resource</Label>
<Select showSearch value={projectRole} onChange={(val) => setProjectRole(val)} placeholder="Select Role Human Resource" style={{ width: '100%' }}> <Select showSearch value={projectRole} onChange={(val) => setProjectRole(val)}
placeholder="Select Role Human Resource"
filterOption={(input, option) => option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
tyle={{ width: '100%' }}>
{dataRole && dataRole.map(res => ( {dataRole && dataRole.map(res => (
<Option key={res.id} value={res.id}>{`${res.name}`}</Option> <Option key={res.id} value={res.id}>{`${res.name}`}</Option>
))} ))}

Loading…
Cancel
Save