Skip to content

Commit

Permalink
fix: fix bug when attempting to get responses from non headlamp route
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamssg committed Jul 5, 2019
1 parent 9bbca35 commit 509b6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api-route-provider.js
Expand Up @@ -343,7 +343,7 @@ function createCustomResponseStore () {
}
}

function getRouteResponses (options, route) {
function getRouteResponses (options, route = {}) {
const routeResponses = Array.isArray(route.responses) ? route.responses : []
const globalResponses = Array.isArray(options.responses) ? options.responses : []
return routeResponses
Expand Down

0 comments on commit 509b6c9

Please sign in to comment.