mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 06:45:41 +00:00
refactor: variable name
This commit is contained in:
@@ -390,9 +390,9 @@ const onProjectClick = async (base: NcProject, ignoreNavigation?: boolean, toggl
|
|||||||
|
|
||||||
if (!isProjectPopulated) base.isLoading = true
|
if (!isProjectPopulated) base.isLoading = true
|
||||||
|
|
||||||
const type = base.type || ProjectTypes.DATABASE
|
const baseType = base.type || ProjectTypes.DATABASE
|
||||||
|
|
||||||
switch (type) {
|
switch (baseType) {
|
||||||
case ProjectTypes.DATABASE:
|
case ProjectTypes.DATABASE:
|
||||||
if (!ignoreNavigation) {
|
if (!ignoreNavigation) {
|
||||||
await navigateTo(
|
await navigateTo(
|
||||||
@@ -409,7 +409,7 @@ const onProjectClick = async (base: NcProject, ignoreNavigation?: boolean, toggl
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unknown base type: ${type}`)
|
throw new Error(`Unknown base type: ${baseType}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isProjectPopulated) {
|
if (!isProjectPopulated) {
|
||||||
|
|||||||
@@ -483,9 +483,9 @@ const setup = async ({
|
|||||||
// default landing page for tests
|
// default landing page for tests
|
||||||
let baseUrl;
|
let baseUrl;
|
||||||
if (isEE()) {
|
if (isEE()) {
|
||||||
const type = base.type || ProjectTypes.DATABASE;
|
const baseType = base.type || ProjectTypes.DATABASE;
|
||||||
|
|
||||||
switch (type) {
|
switch (baseType) {
|
||||||
case ProjectTypes.DOCUMENTATION:
|
case ProjectTypes.DOCUMENTATION:
|
||||||
baseUrl = url ? url : `/#/${base.fk_workspace_id}/${base.id}/doc`;
|
baseUrl = url ? url : `/#/${base.fk_workspace_id}/${base.id}/doc`;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user