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

Function remove

frontend/src/react/components/sql-editor/TabList.tsx:228–231  ·  view source on GitHub ↗
(t: SQLEditorTab)

Source from the content-addressed store, hash-verified

226 .filter((t): t is SQLEditorTab => !!t);
227 const max = snapshot.length - 1;
228 const remove = async (t: SQLEditorTab) => {
229 await removeTab(t, true);
230 await new Promise((r) => requestAnimationFrame(r));
231 };
232 switch (action as CloseTabAction) {
233 case "CLOSE":
234 await remove(tab);

Callers 1

TabListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected