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

Function handleAddStage

apps/webuiapps/src/components/ChatPanel/ModPanel.tsx:256–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254 const [currentState] = useState<ModState>({ ...state });
255
256 const handleAddStage = () => {
257 setStages([
258 ...stages,
259 {
260 stage_name: `Stage ${stages.length + 1}`,
261 stage_description: '',
262 targets: [{ id: nextTargetId++, description: '' }],
263 },
264 ]);
265 };
266
267 const handleRemoveStage = (index: number) => {
268 setStages(stages.filter((_, i) => i !== index));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected