From 03f16c9955010b190df14ed4ef3b9d2ab1fdb0d9 Mon Sep 17 00:00:00 2001 From: hvarg Date: Fri, 17 May 2024 16:14:38 -0400 Subject: [PATCH] Fix binding issue --- src/components/questions/QuestionVariableSelector.tsx | 2 +- src/components/tlois/ConfidencePlot.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/questions/QuestionVariableSelector.tsx b/src/components/questions/QuestionVariableSelector.tsx index 4c4edaa..ae527e5 100644 --- a/src/components/questions/QuestionVariableSelector.tsx +++ b/src/components/questions/QuestionVariableSelector.tsx @@ -64,7 +64,7 @@ export const QuestionVariableSelector = ({questionId, variable, showErrors}: Que if (value) { newBindings[variable.id] = { values: [value.value], - type: value.value === value.label || ["TH","SA"].some(s=>s===value.value) ? "http://www.w3.org/2001/XMLSchema#string" : "http://www.w3.org/2001/XMLSchema#anyURI" + type: value.value === value.label || ["TH","SA"].some(s=>s===value.value) || value.label.endsWith("Ancestry") ? "http://www.w3.org/2001/XMLSchema#string" : "http://www.w3.org/2001/XMLSchema#anyURI" } } else if (bindings[variable.id]) { delete newBindings[variable.id]; diff --git a/src/components/tlois/ConfidencePlot.tsx b/src/components/tlois/ConfidencePlot.tsx index 3f03614..3d07d78 100644 --- a/src/components/tlois/ConfidencePlot.tsx +++ b/src/components/tlois/ConfidencePlot.tsx @@ -3,7 +3,7 @@ import { Goal, RunBinding, TriggeredLineOfInquiry, Workflow, WorkflowRun } from import { useEffect, useState } from "react"; import { Chart as ChartJS, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip, Legend, ChartData, ChartOptions, Chart, TooltipModel, LogarithmicScale } from 'chart.js'; -import { Line, Scatter } from 'react-chartjs-2'; +import { Scatter } from 'react-chartjs-2'; import { findOutputInRuns } from "DISK/util"; import { DISK } from "redux/apis/DISK"; import { useFilteredTLOIs, useOutputs } from "redux/hooks/tloi";