Skip to content

Commit

Permalink
fix: do not delete moved link with empty match array
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwenk committed Oct 14, 2021
1 parent 3d3b81b commit aa7c8c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utilities/build/setMatches.ts
Expand Up @@ -48,7 +48,10 @@ export function setMatches(correlations: Values): Values {
// remove links without any matches
correlations.forEach((correlation) => {
const linksToRemove = correlation.link.filter(
(link) => link.match.length === 0 && link.experimentType !== '1d',
(link) =>
link.match.length === 0 &&
link.experimentType !== '1d' &&
link.edited?.moved !== true,
);
linksToRemove.forEach((link) => removeLink(correlation, link.id));
});
Expand Down

0 comments on commit aa7c8c5

Please sign in to comment.