Fix for create app buttons when usage is not being tracked

This commit is contained in:
Dean 2022-09-23 19:29:56 +01:00
parent 80028f3cd7
commit fa1e618fa1
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@
})
const initiateAppCreation = () => {
if ($licensing.usageMetrics.apps >= 100) {
if ($licensing?.usageMetrics?.apps >= 100) {
appLimitModal.show()
} else {
template = null
@ -60,7 +60,7 @@
}
const initiateAppImport = () => {
if ($licensing.usageMetrics.apps >= 100) {
if ($licensing?.usageMetrics?.apps >= 100) {
appLimitModal.show()
} else {
template = { fromFile: true }

View File

@ -127,7 +127,7 @@
}
const initiateAppCreation = async () => {
if ($licensing.usageMetrics.apps >= 100) {
if ($licensing?.usageMetrics?.apps >= 100) {
appLimitModal.show()
} else if ($apps?.length) {
$goto("/builder/portal/apps/create")