MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getSavedNotesRouteName

Function getSavedNotesRouteName

src/renderer/spaceDefinitions.ts:35–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function getSavedNotesRouteName() {
36 const savedRoute = store.app.get<string>('notes.route')
37
38 if (
39 savedRoute === RouterName.notesSpace
40 || savedRoute === RouterName.notesDashboard
41 || savedRoute === RouterName.notesGraph
42 ) {
43 return savedRoute
44 }
45
46 return RouterName.notesSpace
47}
48
49export function getSpaceDefinitions(): SpaceDefinition[] {
50 return [

Callers 1

getSpaceDefinitionsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected