Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
grigorovaa opened this issue Aug 19, 2023 · 1 comment
Open

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

grigorovaa opened this issue Aug 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@grigorovaa
Copy link
Contributor

grigorovaa commented Aug 19, 2023

🐛 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
@grigorovaa grigorovaa added the bug Something isn't working label Aug 19, 2023
@samurotko
Copy link
Contributor

I could not reproduce the issue @grigorovaa. How do you get the timestamp to look like that, I have always the default view. Might be also browser specific issue.

Should be easy fix tho, just parse the datetime to correct format at submit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants