refactor: variable name

This commit is contained in:
Pranav C
2025-07-28 14:32:06 +05:30
parent 0f4a0663ea
commit 3ecbda80fa
2 changed files with 5 additions and 5 deletions

View File

@@ -390,9 +390,9 @@ const onProjectClick = async (base: NcProject, ignoreNavigation?: boolean, toggl
if (!isProjectPopulated) base.isLoading = true
const type = base.type || ProjectTypes.DATABASE
const baseType = base.type || ProjectTypes.DATABASE
switch (type) {
switch (baseType) {
case ProjectTypes.DATABASE:
if (!ignoreNavigation) {
await navigateTo(
@@ -409,7 +409,7 @@ const onProjectClick = async (base: NcProject, ignoreNavigation?: boolean, toggl
}
break
default:
throw new Error(`Unknown base type: ${type}`)
throw new Error(`Unknown base type: ${baseType}`)
}
if (!isProjectPopulated) {

View File

@@ -483,9 +483,9 @@ const setup = async ({
// default landing page for tests
let baseUrl;
if (isEE()) {
const type = base.type || ProjectTypes.DATABASE;
const baseType = base.type || ProjectTypes.DATABASE;
switch (type) {
switch (baseType) {
case ProjectTypes.DOCUMENTATION:
baseUrl = url ? url : `/#/${base.fk_workspace_id}/${base.id}/doc`;
break;