mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-09 19:14:13 +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',
|
||||
success: function(response, opts) {
|
||||
form.clearInvalid();
|
||||
me.digest = response.result.digest || response.result.data.digest;
|
||||
me.digest = response.result?.digest || response.result?.data?.digest;
|
||||
if (successFn) {
|
||||
successFn(response, opts);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user