Giter Club home page Giter Club logo

Comments (4)

gla23 avatar gla23 commented on September 27, 2024 3

Yes this is a nasty bug. For me it went like this:

  1. All event disappeared suddenly in the calendar (even though it says "6 items" next to the search bar)
  2. When I deselect the start and end dates, refresh the page, then select ONLY the start date again (as @ZettianMaximus suggests) the events appear 🎉 (with just the start date though!)
  3. Next I add the end date... and all the events disappear and you go back to the start.
  4. I thought it was impossible to get the range to work, however I managed to get it to work when filtering for events where the end date isn't null.

When it crashes, the console gives an error that I assume is events without an end date crashing the range code: Cannot read properties of null (reading 'match').

I'm on v10.12.1

from directus.

robinsonjohn avatar robinsonjohn commented on September 27, 2024 2

I also wish to have the calendar layout open to the current date by default, so I currently have a filter applied to directus_presets to delete data.$trigger.payload.layout_options.calendar.viewInfo.startDateStr from being saved to the database.

This allows the calendar to select the current date by default and as of v10.11.1's calendar fix, it seems to be loading okay for me (so far).

from directus.

paescuj avatar paescuj commented on September 27, 2024 1

The start date field is required for the calendar layout, an upcoming PR will address this confusion by auto-selecting a date field 👍

from directus.

MarkBurvs avatar MarkBurvs commented on September 27, 2024

Yes this is a nasty bug. For me it went like this:

  1. All event disappeared suddenly in the calendar (even though it says "6 items" next to the search bar)
  2. When I deselect the start and end dates, refresh the page, then select ONLY the start date again (as @ZettianMaximus suggests) the events appear 🎉 (with just the start date though!)
  3. Next I add the end date... and all the events disappear and you go back to the start.
  4. I thought it was impossible to get the range to work, however I managed to get it to work when filtering for events where the end date isn't null.

When it crashes, the console gives an error that I assume is events without an end date crashing the range code: Cannot read properties of null (reading 'match').

I'm on v10.12.1

Yeah can confirm I'm getting exactly the same thing. If there are any entries where the end date is null, then nothing appears at all. As @gla23 suggested, adding a filter for end dates not being null is a workaround. :)

from directus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.