Skip to content

Commit db0f0aa

Browse files
authored
chore: backport fix #20769 to 2.27 (#20871)
backport #20769 to 2.27 Fix dynamic parameters for create workspace form when using autofill params from the url
1 parent bef0766 commit db0f0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageViewExperimental.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const CreateWorkspacePageViewExperimental: FC<
119119
// Only touched fields are sent to the websocket
120120
// Autofilled parameters are marked as touched since they have been modified
121121
const initialTouched = Object.fromEntries(
122-
parameters.filter((p) => autofillByName[p.name]).map((p) => [p, true]),
122+
parameters.filter((p) => autofillByName[p.name]).map((p) => [p.name, true]),
123123
);
124124

125125
// The form parameters values hold the working state of the parameters that will be submitted when creating a workspace

0 commit comments

Comments
 (0)