Skip to content

Commit

Permalink
Fix binding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hvarg committed May 17, 2024
1 parent e866a48 commit 03f16c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/questions/QuestionVariableSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/components/tlois/ConfidencePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 03f16c9

Please sign in to comment.