anusharanganathan / data2paper

Rails helper application to submit data papers from repositories to publishers
7 stars 1 forks source link

Edit and create data paper screen has javascript error #43

Open martyn-w opened 6 years ago

martyn-w commented 6 years ago

When you load the edit datapaper screen or create a new datapaper, a browser console error is raised with No data was passed from the admin set. Perhaps there are no selectable options?

Possibly(?) as a consequence, the work cannot be submitted, only saved.

screen shot 2018-03-03 at 17 30 28

The complete stack trace is:

visibility_component.self-c49055c417bdeb0f53695ea5a52f3d937514d13a67bade2eb67f84177e70fc22.js?body=1:76 No data was passed from the admin set. Perhaps there are no selectable options?
limitByAdminSet @ visibility_component.self-c49055c417bdeb0f53695ea5a52f3d937514d13a67bade2eb67f84177e70fc22.js?body=1:76
VisibilityComponent @ visibility_component.self-c49055c417bdeb0f53695ea5a52f3d937514d13a67bade2eb67f84177e70fc22.js?body=1:32
activate @ save_work_control.self-d515cff3b69c6e7d709bd73f3ac9029b46ca672957f3dfa36a89e60e34cd954b.js?body=1:117
SaveWorkControl @ save_work_control.self-d515cff3b69c6e7d709bd73f3ac9029b46ca672957f3dfa36a89e60e34cd954b.js?body=1:39
saveWorkControl @ editor.self-6d560e9eb2942cb4efe6eadd465bfc7b29287ec884026a000dd217b76fa81134.js?body=1:117
_default @ editor.self-6d560e9eb2942cb4efe6eadd465bfc7b29287ec884026a000dd217b76fa81134.js?body=1:40
workEditor @ app.self-27f7e60e11a2aafbffdbe5af2da5be278cca9f2e077aa4ed0219b8b36aa3a352.js?body=1:63
initialize @ app.self-27f7e60e11a2aafbffdbe5af2da5be278cca9f2e077aa4ed0219b8b36aa3a352.js?body=1:9
(anonymous) @ initialize.self-a20c99e6f8b025a6110d8ee35045bd83d0cd77835552b25eb2c1874ce53269c1.js?body=1:2
activate @ core.self-e031fb8c0ca3c81276d0c01490bcff1366bcec5ed64f6901b6a5c229dfd0829f.js?body=1:10
(anonymous) @ core.self-e031fb8c0ca3c81276d0c01490bcff1366bcec5ed64f6901b6a5c229dfd0829f.js?body=1:36
dispatch @ jquery.self-bd7ddd393353a8d2480a622e80342adf488fb6006d667e8b42e4c0073393abee.js?body=1:5227
elemData.handle @ jquery.self-bd7ddd393353a8d2480a622e80342adf488fb6006d667e8b42e4c0073393abee.js?body=1:4879
t.dispatch @ turbolinks.self-1d1fddf91adc38ac2045c51f0a3e05ca97d07d24d15a4dcbf705009106489e69.js?body=1:6
r.notifyApplicationAfterPageLoad @ turbolinks.self-1d1fddf91adc38ac2045c51f0a3e05ca97d07d24d15a4dcbf705009106489e69.js?body=1:7
r.pageLoaded @ turbolinks.self-1d1fddf91adc38ac2045c51f0a3e05ca97d07d24d15a4dcbf705009106489e69.js?body=1:6
(anonymous) @ turbolinks.self-1d1fddf91adc38ac2045c51f0a3e05ca97d07d24d15a4dcbf705009106489e69.js?body=1:6