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:
Chelsea Shaw
2023-07-11 10:28:02 -05:00
committed by GitHub
parent 637679a327
commit 5a4e95db62
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) {
return;
}
if (attributes.type === 'object' && val && Object.keys(val).length > 0 && valHasNotChanged) {
return;
}
if (valIsBlank && valHasNotChanged) {
return;
}