mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user