hackjunction / hackjunction/JunctionApp

BUG: The order of the items in edit event timeline schedule

Open
#651 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
78
Forks
69
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

### What went wrong?

On the edit even page, the Timeline section does not behave as expected when adding a new item to the schedule. When adding a new item to the timeline schedule, the date is saved as a date object rather than a string, which cannot be directly compared to what is fetched from the server in the string format.

### Expected Behavior

The order of timeline items stays the same as you add a new item.

### Actual Behavior

The order of the timeline changes on each title input change.
The date format displayed to the user is also different depending on the type of value passed to the component that renders the date. It's either as a string or an ISO formatted string.

### Steps to Reproduce Issue

If there are no objects in the timeline add a new item and save the changes. Then add a new item without saving the changes and try typing in the input field again. The order of the items should change on each input update.

#### Browser

Browser info:
Firefox

### Screenshots
image
image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.