<#922 fix(launch): render object map values as JSO...
# flyte-github
a
#922 fix(launch): render object map values as JSON instead of crashing on relaunch Pull request opened by 1fanwang TL;DR Relaunching an execution whose input is a
Map[str, Struct]
breaks the launch form: the map's object values render as
[object Object]
, the inputs are flagged invalid, and Launch is disabled — so you can't relaunch at all. Type • Bug Fix • Feature • Plugin Are all requirements met? • Code completed • Smoke tested • Unit tests added • Code documentation added • Any pending items have an associated Issue Complete description The map's values are objects, but
parseMappedTypeValue
drops each one straight into a text field, where it stringifies to
[object Object]
and trips a render error. The field is typed
string
, so the fix belongs at the parse boundary, not the JSX: JSON-stringify object values as the map is parsed, so the field, its validation, and the round-trip back to a literal all see a string. Plain strings and numbers pass through untouched. Smoke-tested on a live console: relaunch an execution with a
map<string, struct>
input. Before, the value fields read
[object Object]
, are flagged invalid, and Launch is disabled; after, they read
{"nested":"bar"}
/
{"k":1}
and Launch works.
MapInput.test.tsx
covers it. Tracking Issue NA Follow-up issue NA flyteorg/flyteconsole