MCPcopy Create free account
hub / github.com/FeatureProbe/FeatureProbe / handleDeleteCondition

Function handleDeleteCondition

ui/src/pages/targeting/hooks.tsx:102–105  ·  view source on GitHub ↗
(ruleIndex: number, conditionIndex: number)

Source from the content-addressed store, hash-verified

100 };
101
102 const handleDeleteCondition = (ruleIndex: number, conditionIndex: number) => {
103 rules[ruleIndex].conditions.splice(conditionIndex, 1);
104 saveRules([...rules]);
105 };
106
107 const handleChangeAttr = (ruleIndex: number, conditionIndex: number, value: string) => {
108 rules[ruleIndex].conditions[conditionIndex].subject = value;

Callers 1

RuleContentFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected