Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/static/riot/competitions/detail/submission_upload.tag
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
self.handle_websocket(event_data.submission_id, data)
}
})
self.detailed_result_urls[submission_id] = detailed_result_url
self.detailed_result_urls[event_data.submission_id] = detailed_result_url
self.update()
break
case 'message':
Expand Down Expand Up @@ -443,7 +443,7 @@
}
}
}
return form_json === {} ? null : form_json
return _.isEmpty(form_json) ? null : form_json
}

self.upload = function () {
Expand Down Expand Up @@ -472,7 +472,7 @@
self.lines = {}
let dropdown = $('#organization_dropdown')
let organization = dropdown.dropdown('get value')
if(organization === 'add_organization' | organization === 'None'){
if(organization === 'add_organization' || organization === 'None'){
organization = null
}
dropdown.attr('disabled', 'disabled')
Expand Down