Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1454 | Operations Panel | full URL with que…
Browse files Browse the repository at this point in the history
…ry params for copy and in new tab
  • Loading branch information
snyaggarwal committed Jan 6, 2023
1 parent 0a1fcb6 commit b8af10c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/OperationsDrawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const OperationsDrawer = () => {
} else {
setResponse(_response)
}
setURL(_response.config.url)
setURL(_response?.request?.responseURL || _response?.config?.url)
setIsFetching(false)
})
} else {
Expand All @@ -206,7 +206,7 @@ const OperationsDrawer = () => {
let queryParams = operation === '$cascade' ? cascadeParams : {}
APIService.new().overrideURL(parentItem.version_url || parentItem.url).appendToUrl(`concepts/${code}/${operation}/`).get(null, null, queryParams).then(
_response => {
setURL(_response.config.url)
setURL(_response?.request?.responseURL || _response?.config?.url)
setResponse(_response)
setIsFetching(false)
}
Expand Down

0 comments on commit b8af10c

Please sign in to comment.