diff --git a/SAS/TMSS/frontend/tmss_webapp/src/layout/components/FindObejct.js b/SAS/TMSS/frontend/tmss_webapp/src/layout/components/FindObejct.js index c3b4ead1163c224742e660b3613a5493a641d2b9..4727b60e3d4fe98a8e68b295c204fe678783f94d 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/layout/components/FindObejct.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/layout/components/FindObejct.js @@ -30,12 +30,16 @@ export class FindObejct extends Component { * @param {*} value */ setFindObject(value) { + let currentVal = this.state.objectid; if (value.name) { - this.setState({findObjectPlaceholder: value.name, objectid: this.state.objectid}) + this.setState({findObjectPlaceholder: value.name, objectid: ''}) } else if(this.state.findObjectPlaceholder === 'Project') { this.setState({objectid: value}); - } else if (!isNaN(value)) { + } else if (!isNaN(value)) { this.setState({objectid: value}); + } else{ + this.setState({objectid: currentVal}); + appGrowl.show({severity: 'info', summary: 'Information', detail: 'Enter valid object Id'}); } } diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js index 6b190a03e36911092084cc83e7fb33878aaaf872..4ca6338a36fd19171b341c5b7fb146331fe8b311 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js @@ -193,7 +193,7 @@ export class FindObjectResult extends Component{ render(){ return( <> - <PageHeader location={this.props.location} title={'Find Object'} + <PageHeader location={this.props.location} title={'Search Result'} actions={[]} /> {this.state.objNodes.length>0 &&