MCPcopy Create free account
hub / github.com/bytebase/bytebase / isDefaultProject

Function isDefaultProject

frontend/src/types/v1/project.ts:12–15  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

10// Check if a project name is the default project.
11// Reads the default project name from the actuator store.
12export const isDefaultProject = (name: string): boolean => {
13 const defaultProject = appStoreUtilBridge()?.defaultProjectName();
14 return !!defaultProject && name === defaultProject;
15};
16
17export const unknownProject = (): Project => {
18 return createProto(ProjectSchema, {

Callers 6

ProjectSettingsPageFunction · 0.90
ProjectDatabasesPageFunction · 0.90
DatabaseSQLEditorButtonFunction · 0.90
useProjectDatabaseDetailFunction · 0.90
MembersPageFunction · 0.90
projectV1NameFunction · 0.90

Calls 1

appStoreUtilBridgeFunction · 0.90

Tested by

no test coverage detected