fantasycalendar/Fantasy-Calendar

[BUG] A event can reference itself overflowing the stack and also prevents its own deletion.

Opened this issue · 1 comments

Link to your calendar
Please insert a link to your calendar here

Describe the bug
If you make an event reference itself in the conditionals the stack overflows and prevents the calendar from loading at all. And you cannot delete the event because it's referencing itself.

To Reproduce
Steps to reproduce the behavior:

  1. Create an event
  2. Use conditions to reference the event happening in X days.
  3. Save the event.
  4. See error

Expected behavior
An event shouldn't be able to reference itself in conditionals.

Screenshots
Screenshot 2022-03-16 10 58 43 PM

Desktop (please complete the following information):

  • Browser chrome
  • Version 98.0.4758.107 (Official Build) (64-bit)

Additional context
Add any other context about the problem here.

Closed in error