Skip to content

Commit

Permalink
TH-114443: fixed the issue that noting showed when new request added
Browse files Browse the repository at this point in the history
  • Loading branch information
bcgov-brwang committed May 2, 2024
1 parent 4f4720f commit 4a5dddd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/js/views/RentalRequests.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,13 @@ class RentalRequests extends React.Component {

closeAddDialog = () => {
this.setState({ showAddDialog: false });
this.fetch();
};





newRentalAdded = async (rentalRequest) => {
await this.props.dispatch(Log.rentalRequestAdded(rentalRequest));
this.props.history.push(`${Constant.RENTAL_REQUESTS_PATHNAME}/${rentalRequest.id}`);
Expand Down Expand Up @@ -373,7 +378,7 @@ class RentalRequests extends React.Component {
CUSTOM,
]}
/>
<Button id="search-button" variant="primary" type="submit">
<Button id="search-button" variant="primary" type="submit" >
Search
</Button>
<Button className="btn-custom" id="clear-search-button" onClick={this.clearSearch}>
Expand Down

0 comments on commit 4a5dddd

Please sign in to comment.