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

Function defaultViewState

frontend/src/types/sqlEditor/tabViewState.ts:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33};
34
35export const defaultViewState = (): EditorPanelViewState => {
36 return {
37 view: "CODE",
38 schema: undefined,
39 detail: {},
40 };
41};
42
43export const typeToView = (type: string): EditorPanelView => {
44 if (

Callers 3

useViewStateNavFunction · 0.90
defaultSQLEditorTabFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected