Work item is refetched with `id=null` when Task modal is closed
Summary
When closing an open task modal on the issue page, the workItem GraphQL query is fired with id variable equal to null. This results in the error (not visible to the user because the modal is already closed.
Steps to reproduce
- Open an issue page
- Create a few tasks
- Open the task by clicking task link
- Open developer console on
Networktab - Close the modal
You should see a query workItem that results in an error.
Example Project
This bug reproduces on GitLab.com
What is the current bug behavior?
There is a query sent with the wrong parameter
What is the expected correct behavior?
There should be no query sent
Possible fixes
Refactor queryVariables prop and fix skip checks on queries.