Luca Vivona commited on
Commit
ee3fe19
β€’
1 Parent(s): bae1040

πŸ› append node error fixed

Browse files
frontend/src/components/Navagation/navbar.js CHANGED
@@ -62,7 +62,7 @@ export default class Navbar extends Component{
62
  hugginFace : /^https?:\/\/*(hf.space)\/*(embed)\/*([a-zA-Z0-9+_-]+)\/*([a-zA-Z0-9+_-]+)\/*([+])?(\/)?$/
63
  }
64
 
65
- if (this.state.menu.findIndex(element => {return element.name.toLowerCase() === this.state.name.toLowerCase() || element.host.includes(this.state.host) }) !== -1 ||
66
  this.state.text.includes(" ") ||
67
  (!pattern.local.test(this.state.text) &&
68
  !pattern.share.test(this.state.text) &&
@@ -345,4 +345,4 @@ export default class Navbar extends Component{
345
 
346
  /**
347
  *
348
- * **/
 
62
  hugginFace : /^https?:\/\/*(hf.space)\/*(embed)\/*([a-zA-Z0-9+_-]+)\/*([a-zA-Z0-9+_-]+)\/*([+])?(\/)?$/
63
  }
64
 
65
+ if (this.state.menu.findIndex(element => {return element.name.toLowerCase() === this.state.name.toLowerCase() || element.host.includes(this.state.text) }) !== -1 ||
66
  this.state.text.includes(" ") ||
67
  (!pattern.local.test(this.state.text) &&
68
  !pattern.share.test(this.state.text) &&
 
345
 
346
  /**
347
  *
348
+ * **/