Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fix: Fixed Mapper crashing in scenario where attribute element boun…
Browse files Browse the repository at this point in the history
…d with marker is broken.
  • Loading branch information
scofalik committed Aug 13, 2019
1 parent 509c254 commit 4eb6210
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/conversion/mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,12 @@ export default class Mapper {

const names = this._elementToMarkerNames.get( element );

names.delete( name );
if ( names ) {
names.delete( name );

if ( names.size == 0 ) {
this._elementToMarkerNames.delete( element );
if ( names.size == 0 ) {
this._elementToMarkerNames.delete( element );
}
}
}

Expand Down

0 comments on commit 4eb6210

Please sign in to comment.