From 06e1b603fce4cdb5f69ff0f8d3d22e466ae71945 Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 10 May 2024 02:36:02 -0500 Subject: [PATCH] Fix selectable targets type --- src/components/form/LookupInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/form/LookupInput.tsx b/src/components/form/LookupInput.tsx index 3338087..5285089 100644 --- a/src/components/form/LookupInput.tsx +++ b/src/components/form/LookupInput.tsx @@ -90,7 +90,7 @@ const LookupInput: FunctionComponent = ({ /** * Represents the selected value in the LookupInput component. */ - const [selected, setSelected] = useState("auto"); + const [selected, setSelected] = useState("auto"); /** * Retrieves the target type based on the provided value. @@ -180,7 +180,7 @@ const LookupInput: FunctionComponent = ({ {selected == "auto" // If the detected type was provided, then notate which in parentheses. Compact object naming might be better in the future. ? (detectedType.isJust ? `Auto (${targetShortNames[detectedType.value]})` : objectNames["auto"]) - : targetShortNames[selected]} + : objectNames[selected]}