forked from Gitlink/forgeplus-react
fix
This commit is contained in:
parent
ef83677ac6
commit
e3fe1f147e
|
|
@ -311,7 +311,7 @@ class NewHeader extends Component {
|
|||
|
||||
checkLink=(link)=>{
|
||||
let { settings,} = this.state;
|
||||
if(link.indexOf("http")>-1){
|
||||
if(link && link.indexOf("http")>-1){
|
||||
return link;
|
||||
}else{
|
||||
return settings.new_course.default_url + link;
|
||||
|
|
|
|||
Loading…
Reference in New Issue