mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
UI: Fix SSH role edit clearing out object values (#21739)
* Remove logic that skips sending object if not changed * Add changelog
This commit is contained in:
3
changelog/21739.txt
Normal file
3
changelog/21739.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
ui: Fixed an issue where editing an SSH role would clear `default_critical_options` and `default_extension` if left unchanged.
|
||||||
|
```
|
||||||
@@ -66,9 +66,6 @@ export default JSONSerializer.extend({
|
|||||||
if (attributes.options.readOnly) {
|
if (attributes.options.readOnly) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (attributes.type === 'object' && val && Object.keys(val).length > 0 && valHasNotChanged) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (valIsBlank && valHasNotChanged) {
|
if (valIsBlank && valHasNotChanged) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user