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

Function persistFilter

frontend/src/views/sql-editor/Sheet/context.ts:358–369  ·  view source on GitHub ↗
(filter: WorksheetFilter)

Source from the content-addressed store, hash-verified

356};
357
358const persistFilter = (filter: WorksheetFilter) => {
359 const scope = currentScope();
360 if (!scope) return;
361 safeWriteJSON(
362 storageKeySqlEditorWorksheetFilter(
363 scope.wsScope,
364 scope.project,
365 scope.email
366 ),
367 filter
368 );
369};
370
371const persistExpandedKeys = (keys: Set<string>) => {
372 const scope = currentScope();

Callers 1

bindWatchersFunction · 0.85

Calls 3

safeWriteJSONFunction · 0.85
currentScopeFunction · 0.70

Tested by

no test coverage detected