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:
parent
83b95d3efe
commit
9fa2b669e4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue