Skip to content

Commit

Permalink
Fix overridequerymodal bug
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Nov 27, 2024
1 parent 18a630a commit 8580732
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import {
IMAGE_FIELD_PATTERN,
IProcessorConfig,
LABEL_FIELD_PATTERN,
MapEntry,
MODEL_ID_PATTERN,
ModelInterface,
OutputMapEntry,
QUERY_IMAGE_PATTERN,
QUERY_PRESETS,
QUERY_TEXT_PATTERN,
Expand Down Expand Up @@ -66,10 +66,8 @@ export function OverrideQueryModal(props: OverrideQueryModalProps) {
values,
`${props.baseConfigPath}.${props.config.id}.output_map`
);
// TODO: should handle edge case of multiple output maps configured. Currently
// defaulting to prediction 0 / assuming not multiple predictions to track.
const outputMapValues = getIn(outputMap, '0', []).map(
(mapEntry: MapEntry) => mapEntry.value
(mapEntry: OutputMapEntry) => mapEntry.value.value
) as string[];
const finalModelOutputs =
outputMapValues.length > 0
Expand Down

0 comments on commit 8580732

Please sign in to comment.