orppst / pst-gui

web based front end for the tool
Mozilla Public License 2.0
0 stars 0 forks source link

Manager View: observatory form does not populate existing value. #171

Closed AllanEngland closed 1 week ago

AllanEngland commented 1 week ago

When you navigate to the observatory page, the dropdown is blank. Its default value should be the observatory assigned to this cycle.

If you click inside the dropdown and click out again (without selecting an observatory) then the current observatory name is correctly populated.

If you click inside the dropdown and select the current observatory, the form becomes dirty and the update button is enabled.

The code does attempt to set the default value of the dropdown, but this is not working.

AllanEngland commented 1 week ago

Darren spotted the Select box value was being set to a number instead of a string. I changed this and now it works as expected.