MCPcopy Create free account
hub / github.com/microsoft/SandDance / deleteExpression

Method deleteExpression

docs/app/js/sanddance-app.js:12702–12716  ·  view source on GitHub ↗
(groupIndex, index)

Source from the content-addressed store, hash-verified

12700 });
12701 }
12702 deleteExpression(groupIndex, index) {
12703 const groups = [
12704 ...this.state.groups
12705 ];
12706 const group = groups[groupIndex];
12707 const expressions = [
12708 ...group.expressions
12709 ];
12710 expressions.splice(index, 1);
12711 if (expressions.length === 2) expressions[1].unlocked = true;
12712 group.expressions = expressions;
12713 this.setState({
12714 groups
12715 });
12716 }
12717 render() {
12718 return (0, _base.base).react.createElement((0, _group.Group), {
12719 className: "sanddance-search",

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected