MCPcopy
hub / github.com/stravu/crystal / checkRunningProject

Function checkRunningProject

frontend/src/components/DraggableProjectTreeView.tsx:546–555  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

544 useEffect(() => {
545 // Check initial running state
546 const checkRunningProject = async () => {
547 try {
548 const response = await window.electronAPI.projects.getRunningScript();
549 if (response.success && response.data) {
550 setRunningProjectId(response.data as number);
551 }
552 } catch (error) {
553 console.error('Failed to check running project:', error);
554 }
555 };
556
557 checkRunningProject();
558

Callers 1

DraggableProjectTreeViewFunction · 0.85

Calls 2

getRunningScriptMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected