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

Completing task events in the calendar view generates a type mismatch error #587

Open
3 of 7 tasks
DumbleDoofDev opened this issue Feb 11, 2025 · 0 comments
Open
3 of 7 tasks
Labels
bug Something isn't working

Comments

@DumbleDoofDev
Copy link

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports and didn't find any similar reports.

Expected Behavior

When checking off a Task Event in the calendar view the "completed" property in the front matter of the the note updates from an unchecked checkbox to a checked one.

Current behaviour

The checkbox updates to the date and time the task was completed, creating an error that reads "Type mismatch, expected Checkbox". This creates incompatibilities the Dataview plugin as you can no longer query this property.

JavaScript console output

No output

Steps to reproduce

  • Create a task event in the calendar
  • Complete the task by clicking the checkbox
  • Open the note and see the type mismatch error

Image

Calendar information

Full note calendars

Which Operating Systems are you using?

  • macOS
  • Windows
  • Linux
  • Android
  • iOS

Obsidian Version

1.8.4

Full Calendar Plugin Version

0.10.7

Checks

  • I have tried it with all other plugins disabled and the error still occurs.

Possible solution

A solution could be to update the unchecked checkbox to a checked on like expected and create a separate property for the date and time completed for those that would like to still use that feature.

Comments

I do understand that having the date and time the task is completed could be a useful feature to some but with the mismatch error it generates causes complicatoins for Dataview.

Work arounds for this issue I found so far:

  • Manually going into the note to check off the property prevents this issue
  • Querying for the "single" property that pops up when you complete the task also allows for differentiation between completed and uncompleted tasks with Dataview
@DumbleDoofDev DumbleDoofDev added the bug Something isn't working label Feb 11, 2025
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

1 participant