|
@@ -127,14 +127,14 @@ class Search extends Component {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<Row>
|
|
<Row>
|
|
|
- <Col lg={this.props.user.role.id === 2021 ? 12 : 9}>
|
|
|
|
|
|
|
+ <Col lg={this.props.user?.role.id === 2021 ? 12 : 9}>
|
|
|
<div className="form-group mb-4">
|
|
<div className="form-group mb-4">
|
|
|
<input className="form-control mb-2" type="text" id="searchInput" placeholder="Pencarian Nama Perguruan Tinggi" />
|
|
<input className="form-control mb-2" type="text" id="searchInput" placeholder="Pencarian Nama Perguruan Tinggi" />
|
|
|
<div className="d-flex">
|
|
<div className="d-flex">
|
|
|
<button className="btn btn-secondary" type="button" onClick={(e) => this.handleSearchClick()}>
|
|
<button className="btn btn-secondary" type="button" onClick={(e) => this.handleSearchClick()}>
|
|
|
Search
|
|
Search
|
|
|
</button>
|
|
</button>
|
|
|
- <div className="ml-auto">{this.props.user.role.id === 2021 && `Pembina: ${this.props.user.lembaga.nama}`}</div>
|
|
|
|
|
|
|
+ <div className="ml-auto">{this.props.user?.role.id === 2021 && `Pembina: ${this.props.user.lembaga.nama}`}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div className="card card-default">
|
|
<div className="card card-default">
|
|
@@ -153,7 +153,7 @@ class Search extends Component {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</Col>
|
|
</Col>
|
|
|
- {this.props.user.role.id === 2021 ? (
|
|
|
|
|
|
|
+ {this.props.user?.role.id === 2021 ? (
|
|
|
""
|
|
""
|
|
|
) : (
|
|
) : (
|
|
|
<Col lg="3">
|
|
<Col lg="3">
|