fix(dashboard): preselect saved type/kind in edit-target form #176

Merged
sharang merged 1 commits from fix/edit-target-type-select into main 2026-07-16 17:52:28 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 4.8 49ecab32aa fix(dashboard): preselect the saved type/kind in the edit-target form
CI / Check (pull_request) Successful in 5m47s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped
The edit-target dialog set `value` on the <select> but the <option>s had no
`selected` attribute, so Dioxus rendered the first option (Web Application)
regardless of the target's real type. Editing and saving a PLC/SPS (or any
non-web) target silently rewrote its type to web_app.

Mark the matching option `selected` (type + artifact-kind selects) so the form
opens on the target's actual values.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 19:46:07 +02:00