]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: dc: subscription: fix subscription check
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 19 Oct 2022 10:34:27 +0000 (12:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Oct 2022 12:05:20 +0000 (14:05 +0200)
With the change to the rust backend for the subscription check, the
return value changed as well.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
www/manager6/dc/Support.js

index 1b51e5babc164791c89798ece48b81b441a47d2d..80f4d848d48caf622ceceb6d4743e2abbdc5c317 100644 (file)
@@ -61,7 +61,7 @@ Ext.define('PVE.dc.Support', {
                },
                success: function(response, opts) {
                    let data = response.result.data;
-                   if (data.status === 'Active') {
+                   if (data?.status.toLowerCase() === 'active') {
                        if (data.level === 'c') {
                            me.updateCommunity(data);
                        } else {