ui: remove old nspace argument from the proxy instance repository (#10039)

The extra argument meant that the blocking query configuration wasn't
being read properly, and therefore the correct ?index wasn't being sent
with the request.
This commit is contained in:
John Cowen 2021-04-15 19:18:07 +01:00 committed by GitHub
parent 7e9bcb06ca
commit 3d0632cf10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.changelog/10039.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: ensure proxy instance API requests perform blocking queries correctly
```

View File

@ -36,7 +36,7 @@ export default class ProxyService extends RepositoryService {
} }
@dataSource('/:ns/:dc/proxy-instance/:serviceId/:node/:id') @dataSource('/:ns/:dc/proxy-instance/:serviceId/:node/:id')
findInstanceBySlug(params, nspace, configuration) { findInstanceBySlug(params, configuration) {
return this.findAllBySlug(params, configuration).then(function(items) { return this.findAllBySlug(params, configuration).then(function(items) {
let res = {}; let res = {};
if (get(items, 'length') > 0) { if (get(items, 'length') > 0) {