Table view doesn't adjust correctly without site refresh for grouped entities

In my table view, I show Tasks grouped by Department.

I have the “Hide Empty Groups” filter ON for Departments.
If I switch the department of a Task to another Department which is already visible in the table (since it has Tasks), it will smoothly move to the new group. If I switch the department of a task to a department which has no tasks yet, the task will disappear from the table completely, until I refresh the page and the Department actually shows.

2025-04-22_16-58-41