UNPKG

mapeo-id-bmf

Version:

iD Editor for osm-p2p & mapeo-desktop changed to meet requirements of Bruno Manser Fonds

17 lines (11 loc) 429 B
import { actionDeleteRelation } from './delete_relation'; export function actionDeleteMember(relationId, memberIndex) { return function(graph) { var relation = graph.entity(relationId) .removeMember(memberIndex); graph = graph.replace(relation); if (relation.isDegenerate()) graph = actionDeleteRelation(relation.id)(graph); return graph; }; }