Fix edit capabilities call in auth method (#14966)

* Fix edit capabilities call in auth method

- Capabilities call was not getting triggered correctly as apiPath
  method was missing the correct context.

* Added changelog
This commit is contained in:
Arnav Palnitkar 2022-04-11 10:48:35 -07:00 committed by GitHub
parent ad3bf3173c
commit 459909ae33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

3
changelog/14966.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fixes edit auth method capabilities issue
```

View File

@ -116,9 +116,9 @@ export default attachCapabilities(ModelExport, {
deletePath: apiPath`sys/auth/${'id'}`,
configPath: function (context) {
if (context.type === 'aws') {
return apiPath`auth/${'id'}/config/client`;
return apiPath`auth/${'id'}/config/client`.call(this, context);
} else {
return apiPath`auth/${'id'}/config`;
return apiPath`auth/${'id'}/config`.call(this, context);
}
},
});