diff --git a/js/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte index d157bd6f6..459f7b621 100644 --- a/js/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte +++ b/js/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte @@ -42,21 +42,21 @@ let scrollTableToRight: () => Promise; let tableWithOutput: (string | number)[][]; $: { - const strucuredData = convertTableToData(table); + const structuredData = convertTableToData(table); if (output?.length) { - strucuredData.Prediction = output; - const lastColIndex = Object.keys(strucuredData).length - 1; + structuredData.Prediction = output; + const lastColIndex = Object.keys(structuredData).length - 1; highlighted = highlightOutput(output, lastColIndex); scrollTableToRight(); } else { - delete strucuredData.Prediction; + delete structuredData.Prediction; highlighted = {}; if (highlightErrorKey) { highlighted[highlightErrorKey] = "bg-red-100 border-red-100 dark:bg-red-800 dark:border-red-800"; highlightErrorKey = ""; } } - tableWithOutput = convertDataToTable(strucuredData); + tableWithOutput = convertDataToTable(structuredData); } const COLORS = ["blue", "green", "yellow", "purple", "red"] as const;