Skip to content

Editing waitField results in a black screen #252

@ShivaGupta-14

Description

@ShivaGupta-14

Describe the bug
When editing a waitField, the screen goes completely black. The app breaks and needs a page refresh to work again.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://localhost:5173/home
  2. Select any task whose waitField is filled
  3. Click on a waitField to edit it
  4. Screen goes black and becomes unresponsive

Expected behavior
The DatePicker should open normally when editing.

Video

Screen.Recording.2025-12-07.at.8.41.56.PM.mov

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: Latest

Additional context

Console error: Uncaught RangeError: Invalid time value at DatePicker (date-picker.tsx:38:19)

The error occurs in the <DatePicker> component inside the table when trying to edit a field. The DatePicker is receiving an invalid date value (likely null, undefined, or incorrectly formatted). This causes the component to crash and render a black screen.

Error boundary stack trace shows the error propagates through:

  • DatePicker → table.tsx → dialog.tsx → Tasks component

The issue is that waitField data isn't being passed correctly to the DatePicker on edit mode.

  • I want to work on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions