From 5f9f8b169417679b376baa5899764d716edf3a5c Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 23 Sep 2022 13:30:47 +0100 Subject: [PATCH] default quotaUsage in licensing store to undefined - some checks rely on this field being undefined, however in the current intialisation flow it is always set to the full object by the time the inspections are made. set to undefined for additional safety --- packages/builder/src/stores/portal/licensing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/stores/portal/licensing.js b/packages/builder/src/stores/portal/licensing.js index 135c0d6ef4..680ae8a38c 100644 --- a/packages/builder/src/stores/portal/licensing.js +++ b/packages/builder/src/stores/portal/licensing.js @@ -15,7 +15,7 @@ export const createLicensingStore = () => { // features groupsEnabled: false, // the currently used quotas from the db - quotaUsage: {}, + quotaUsage: undefined, // derived quota metrics for percentages used usageMetrics: {}, // quota reset