Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changeURLMiddleware: respect
pathnameShouldBe: ""
Prompted by @jameshadfield's review comment.¹ Fixes bug where ` pathnameShouldBe: ""` was ignored because `""` is falsey. I chose to check `typeof` instead of `action.hasOwnProperty` because I found cases where `pathnameShouldBe` can potentially be set to `undefined`.² ¹ <#1804 (comment)> ² <https://github.com/nextstrain/auspice/blob/84a15484acabee10a65d2d4138f83e51ae068b51/src/actions/loadData.js#L128>
- Loading branch information