The activity type was not preserved when editing an activity (#6)
Co-authored-by: Niklas Deutschmann <sonstharmlos@noreply.codeberg.org>
This commit is contained in:
parent
03b8e6d315
commit
fb440b2b8f
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@
|
|||
function populateForm(activity) {
|
||||
// Populate form fields
|
||||
document.getElementById('title').value = activity.title || '';
|
||||
document.getElementById('activityType').value = activity.activityType || 'OTHER';
|
||||
document.getElementById('activityType').value = activity.activityType?.toUpperCase() || 'OTHER';
|
||||
document.getElementById('description').value = activity.description || '';
|
||||
document.getElementById('visibility').value = activity.visibility || 'PUBLIC';
|
||||
document.getElementById('race').checked = activity.race || false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue