Skip to content

Commit

Permalink
Fix eternascript handling of null input value, again
Browse files Browse the repository at this point in the history
  • Loading branch information
luxaritas committed Oct 16, 2019
1 parent 8a9146e commit e677935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/frontend/coffee/eterna/script-interface.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
for i in [0..input_array.length-1]
input = input_array[i]
if input['value']
param += "var "+input['value']+"='"+input['val']?.replace(/'/g, "<ETERNASINGLEQUOTEESCAPE>")+"'.replace(/<ETERNASINGLEQUOTEESCAPE>/g, \"'\");"
param += "var "+input['value']+"='"+input['val']?.replace(/'/g, "<ETERNASINGLEQUOTEESCAPE>")+ (input['val'] ? "'.replace(/<ETERNASINGLEQUOTEESCAPE>/g, \"'\");" : '')
return param

set_library : (Library) ->
Expand Down

0 comments on commit e677935

Please sign in to comment.