mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-02 02:37:33 +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
|
||||
|
||||
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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user