Skip to content

Work order list does not refresh after deleting a work order #269

@daveharmswebdev

Description

@daveharmswebdev

Bug Report — Work Order List: State not updated after delete

Found during: Manual testing of Work Orders list page


Steps to Reproduce

  1. Navigate to Work Orders list (/work-orders)
  2. Delete a work order
  3. Observe: the deleted work order still appears in the list

Current Behavior

The work order is successfully deleted on the backend (confirmed), but the frontend list does not update. A full page reload is required to see the correct list.

Expected Behavior

After a successful delete, the work order list should automatically refresh — either by removing the item from the local store state or by re-fetching the list. This should be immediate with no manual page reload required.

Likely Cause

The delete handler in the work order store is probably not updating the local items state or re-triggering a list fetch after the delete API call succeeds. The income list handles this correctly and can be used as a reference.

Labels: bug, frontend, work-orders

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions