Skip to content

Commit

Permalink
Merge pull request #229 from VALIDproject/feature_tagDuplNode
Browse files Browse the repository at this point in the history
fix a bug that tags on target nodes were not shown if source … #223
  • Loading branch information
doomsayer2 authored Dec 11, 2018
2 parents adc88ea + 8eee70c commit d3bea62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filters/entityTagFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class EntityTagFilter extends TagFilter
{
const resultSet:d3.Set = d3.set([]);
for(const entry of data) {
if(entry.sourceNode.trim() === val) {
if(entry.sourceNode.trim() === val.trim()) {
const tagsAsText:string = entry.sourceTag;
if (tagsAsText !== undefined) {
const values:Array<string> = tagsAsText.split('|');
Expand Down
2 changes: 1 addition & 1 deletion src/filters/mediaTagFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class MediaTagFilter extends TagFilter
{
const resultSet:d3.Set = d3.set([]);
for(const entry of data) {
if(entry.targetNode.trim() === val) {
if(entry.targetNode.trim() === val.trim()) {
const tagsAsText:string = entry.targetTag;
if (tagsAsText !== undefined) {
const values:Array<string> = tagsAsText.split('|');
Expand Down

0 comments on commit d3bea62

Please sign in to comment.