This commit is contained in:
NunoSempere 2022-05-25 12:24:41 -04:00
parent b09e9f364d
commit 191b098c2a

View File

@ -176,7 +176,7 @@ export default function ComparisonView({ listOfElementsForView }) {
let changeComparisons = async (links) => { let changeComparisons = async (links) => {
let quantitativeComparisons2 = []; let quantitativeComparisons2 = [];
let binaryComparisons2 = []; let binaryComparisons2 = [];
links.shift(); // links.shift();
for (let link of links) { for (let link of links) {
let { source, target, distance, reasoning, squiggleString } = link; let { source, target, distance, reasoning, squiggleString } = link;
let searchByName = (name, candidate) => candidate.name == name; let searchByName = (name, candidate) => candidate.name == name;
@ -188,6 +188,7 @@ export default function ComparisonView({ listOfElementsForView }) {
console.log("link", link); console.log("link", link);
console.log(source); console.log(source);
console.log(target); console.log(target);
alert(JSON.stringify(link, null, 4));
throw new Error("Comparisons include unknown elements, please retry"); throw new Error("Comparisons include unknown elements, please retry");
} }
quantitativeComparisons2.push([ quantitativeComparisons2.push([