diff --git a/app/models/trustie_hackathon.rb b/app/models/trustie_hackathon.rb index 65275099d..3a45687ce 100644 --- a/app/models/trustie_hackathon.rb +++ b/app/models/trustie_hackathon.rb @@ -1,5 +1,5 @@ class TrustieHackathon < ApplicationRecord - validates_length_of :description, maximum: 500 + #validates_length_of :description, maximum: 10000 has_many :trustie_hacks, :dependent => :destroy end diff --git a/public/react/src/modules/osshackathon/Osshackathonmd.js b/public/react/src/modules/osshackathon/Osshackathonmd.js index e9a888ab1..7a1680e5f 100644 --- a/public/react/src/modules/osshackathon/Osshackathonmd.js +++ b/public/react/src/modules/osshackathon/Osshackathonmd.js @@ -32,7 +32,7 @@ class Osshackathonmd extends Component{ this.setState({ title_value:result.data.name }) - this.contentMdRef.current.setValue(result.data.description); + this.contentMdRef.current.setValue(result.data.description === null ? "" : result.data.description); } }) } @@ -83,15 +83,16 @@ class Osshackathonmd extends Component{
@@ -214,4 +214,4 @@ class Osshackathonmodel extends Component{ ) } } -export default Osshackathonmodel; \ No newline at end of file +export default Osshackathonmodel;