Commit 987bb28d authored by Phil Hughes's avatar Phil Hughes

Fixed no new line showing as null in select input

parent 7a8cd815
...@@ -90,7 +90,13 @@ export default { ...@@ -90,7 +90,13 @@ export default {
// ignore null values match lines // ignore null values match lines
if (left) acc.push(left); if (left) acc.push(left);
// if the line_codes are identically, return to avoid duplicates // if the line_codes are identically, return to avoid duplicates
if (left?.line_code === right?.line_code) return acc; if (
left?.line_code === right?.line_code ||
left?.type === 'old-nonewline' ||
right?.type === 'new-nonewline'
) {
return acc;
}
if (right && right.type !== 'match') acc.push(right); if (right && right.type !== 'match') acc.push(right);
return acc; return acc;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment