chore: use static params when dynamic param metadata is missing (#17836)

Existing template versions do not have the metadata (modules + plan) in
the db. So revert to using static parameter information from the
original template import.

This data will still be served over the websocket.
This commit is contained in:
Steven Masley
2025-05-16 11:47:59 -05:00
committed by GitHub
parent fb0e3d64db
commit f36fb67f57
14 changed files with 558 additions and 251 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ func (c *Client) Dial(ctx context.Context, path string, opts *websocket.DialOpti
}
conn, resp, err := websocket.Dial(ctx, u.String(), opts)
if resp.Body != nil {
if resp != nil && resp.Body != nil {
resp.Body.Close()
}
if err != nil {