MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / editorFindIndex

Function editorFindIndex

src/pages/options/routes/script/ScriptEditor.tsx:359–361  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

357 return editorsRef.current.find((e) => e.script.uuid === uuid)?.script;
358 }, []);
359 const editorFindIndex = (uuid: string) => {
360 return editorsRef.current.findIndex((e) => e.script.uuid === uuid);
361 };
362 const editorFindItem = (uuid: string) => {
363 return editorsRef.current.find((e) => e.script.uuid === uuid);
364 };

Callers 3

insertEditorFunction · 0.85
ScriptEditorFunction · 0.85
handleDeleteEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected