MCPcopy Create free account
hub / github.com/alephdata/aleph / removeKey

Method removeKey

ui/src/components/MappingEditor/MappingList.js:203–210  ·  view source on GitHub ↗
(id, key)

Source from the content-addressed store, hash-verified

201 }
202
203 removeKey(id, key) {
204 const mapping = this.getMapping(id);
205 const index = mapping.keys.indexOf(key);
206 if (index !== -1) {
207 mapping.keys.splice(index, 1);
208 }
209 return this;
210 }
211
212 addProperty(id, propName, value) {
213 const mapping = this.getMapping(id);

Callers 1

onKeyRemoveMethod · 0.80

Calls 1

getMappingMethod · 0.95

Tested by

no test coverage detected