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

Method removeMapping

ui/src/components/MappingEditor/MappingList.js:177–183  ·  view source on GitHub ↗
(idToRemove)

Source from the content-addressed store, hash-verified

175 }
176
177 removeMapping(idToRemove) {
178 this.mappingItems.delete(idToRemove);
179 // remove any references to this mapping in other mappings' properties
180 this.applyToEntityRefs(idToRemove, this.removeProperty);
181
182 return this;
183 }
184
185 applyToEntityRefs(id, applyFunc) {
186 this.getValues().forEach((mapping) => {

Callers 2

changeIdMethod · 0.95
onMappingRemoveMethod · 0.80

Calls 2

applyToEntityRefsMethod · 0.95
deleteMethod · 0.45

Tested by

no test coverage detected