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

Function folderTree

frontend/src/views/sql-editor/Sheet/context.ts:751–757  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

749 return useSheetContextStore.getState().viewStates[view].sheetTree;
750 },
751 get folderTree() {
752 const root: WorksheetFolderNode = {
753 ...rootTreeNodeFor(view),
754 key: folderContext.rootPath,
755 };
756 return buildTree(view, root, new Map(), false);
757 },
758 folderContext,
759 events: getEvents(view),
760 fetchSheetList: () => fetchSheetListFor(view),

Callers

nothing calls this directly

Calls 2

rootTreeNodeForFunction · 0.85
buildTreeFunction · 0.70

Tested by

no test coverage detected