MCPcopy Index your code
hub / github.com/bytebase/bytebase / emptyViewState

Function emptyViewState

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

Source from the content-addressed store, hash-verified

157});
158
159const emptyViewState = (view: SheetViewMode): ViewState => ({
160 isLoading: false,
161 isInitialized: false,
162 sheetTree: emptyRootNode(view),
163 folders: [rootPathFor(view)],
164});
165
166const initialViewStates: Record<SheetViewMode, ViewState> = {
167 my: emptyViewState("my"),

Callers 2

context.tsFile · 0.85
reloadFromStorageFunction · 0.85

Calls 2

emptyRootNodeFunction · 0.85
rootPathForFunction · 0.85

Tested by

no test coverage detected