Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent empty data from rendering move page modal.
There seems to be an issue where sometimes, possibly when a value is both simultaneously being mutated and queried from the cache, where a query component will return an empty data object, even though the query has finished loading and there are no errors. This was causing our application to crash because the modal assumes that it is being passed a valid data object, based on assumptions being made in the PropTypes. This change guards against this issue by not rendering the move page modal in this particular scenario. Other people have been reporting similar issues as recently as April 2019 which suggests that this could be an outstanding bug in our version of the react-apollo dependency. We can guard against it but there doesn't appear to be a well-understood fix at this time.
- Loading branch information