Skip to content

Commit

Permalink
can't be newRequest without a name
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Jan 2, 2018
1 parent baa2dd4 commit 24f2689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ui/src/state/actions/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function doRequest(dispatch, getState, name, request) {

let storeHandle = (typeof name === 'string')
let requestHandle = storeHandle && getState().requests.fetching[name]
let newRequest = !requestHandle
let newRequest = !!request && !requestHandle
if (!storeHandle) {
requestHandle = name()
}
Expand Down

0 comments on commit 24f2689

Please sign in to comment.