On adding a new course, the "course state" dropdown should be set as disabled with the "unpublished" option selected. The payload "courseState" property should not be sent to the API.
On updating the course, if the course has no content sections, the API will provide an error stating the invalid "courseState" property that should be displayed to the user.
On URL : https://edu-hospice-api.herokuapp.com/api/admin/courses/10
On adding a new course, the "course state" dropdown should be set as disabled with the "unpublished" option selected. The payload "courseState" property should not be sent to the API.
On updating the course, if the course has no content sections, the API will provide an error stating the invalid "courseState" property that should be displayed to the user.
Backend related issue: https://github.com/danutchindris/edu-hospice-api/issues/220