Temporarily fix undefined billing limit

Since the 1.5.x branch hasn't been updated with the billing changes,
this change adds a fallback so that the console still functions.
This commit is contained in:
Steven Nguyen
2023-12-19 16:13:47 -08:00
parent 9f3c3b176f
commit ade620c9a5
+8 -1
View File
@@ -34,8 +34,15 @@
let showDropdown = false;
// TODO: remove the default billing limits when backend is updated with billing code
const { bandwidth, documents, storage, users, executions } = ($organization ?? {})
.billingLimits;
.billingLimits ?? {
bandwidth: 1,
documents: 1,
storage: 1,
users: 1,
executions: 1
};
const limitedServices = [
{ name: 'bandwidth', value: bandwidth },
{ name: 'documents', value: documents },