Skip to content

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

@grigorovaa

Description

@grigorovaa

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions