backport UI: Remove logic that skips sending object if not changed (#21759)

Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-07-20 20:18:34 -04:00 committed by GitHub
parent 83b95d3efe
commit 9fa2b669e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

3
changelog/21739.txt Normal file
View 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.
```

View File

@ -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;
} }