Skip to content

Commit

Permalink
Temporarily fix undefined billing limit
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stnguyen90 committed Dec 20, 2023
1 parent 9f3c3b1 commit ade620c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/layout/containerHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit ade620c

Please sign in to comment.