mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-11 19:42:49 +00:00
edit window: make response handling code path more robust
A 2xx error code doesn't necessarily mean we got data we can dereference Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bfc6233d92
commit
4f5e2bd12b
@ -222,7 +222,7 @@ Ext.define('Proxmox.window.Edit', {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
success: function(response, opts) {
|
success: function(response, opts) {
|
||||||
form.clearInvalid();
|
form.clearInvalid();
|
||||||
me.digest = response.result.digest || response.result.data.digest;
|
me.digest = response.result?.digest || response.result?.data?.digest;
|
||||||
if (successFn) {
|
if (successFn) {
|
||||||
successFn(response, opts);
|
successFn(response, opts);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user