Skip to content
Permalink
Browse files

fix: fix bug when attempting to get responses from non headlamp route

  • Loading branch information...
dadamssg committed Jul 5, 2019
1 parent 9bbca35 commit 509b6c98b7ef538679f46beef7dbacbf31c13817
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/api-route-provider.js
@@ -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

0 comments on commit 509b6c9

Please sign in to comment.
You can’t perform that action at this time.