Fixed empty job list
This commit is contained in:
@@ -3,6 +3,7 @@ import blogOne from '../../assets/images/blog-1.jpg';
|
||||
import blogTwo from '../../assets/images/blog-2.jpg';
|
||||
import blogThree from '../../assets/images/blog-3.jpg';
|
||||
import JobsData from '../../Services/JobsData';
|
||||
import getConfig from './../../Config/config'
|
||||
|
||||
class RecentJobsOne extends Component {
|
||||
|
||||
@@ -31,11 +32,15 @@ titleLen(title){
|
||||
// return null;
|
||||
// }
|
||||
render() {
|
||||
|
||||
var site = getConfig()[0];
|
||||
if ( this.state.jobsDataResults== undefined ){
|
||||
return null;
|
||||
}
|
||||
var dashUrl = "https://dashboard.wrenchboard.com/";
|
||||
var dashUrl = site.dash_url;
|
||||
|
||||
if (this.state.jobsDataResults.length == 0){
|
||||
return <></>;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user