MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / handleAddTarget

Function handleAddTarget

apps/webuiapps/src/components/ChatPanel/ModPanel.tsx:277–281  ·  view source on GitHub ↗
(stageIndex: number)

Source from the content-addressed store, hash-verified

275 };
276
277 const handleAddTarget = (stageIndex: number) => {
278 const updated = [...stages];
279 updated[stageIndex].targets.push({ id: nextTargetId++, description: '' });
280 setStages(updated);
281 };
282
283 const handleRemoveTarget = (stageIndex: number, targetIndex: number) => {
284 const updated = [...stages];

Callers 1

EditViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected