fix: render non-typed parameter changes immediately (#24755)

This was already done for the workspace creation page, but not the edit
page, as it does not share the base form, so all I did was copy that fix
into the edit page.
This commit is contained in:
Asher
2026-04-29 13:00:58 -08:00
committed by GitHub
parent 70d46943db
commit fe6c8771df
@@ -88,7 +88,14 @@ export const WorkspaceParametersPageViewExperimental: FC<
formInputs[parameter.name] = value;
sendMessage(formInputs);
},
500,
(parameter: PreviewParameter, _value: string) => {
// Return a debounce for string fields (those that involve typing) and
// zero debounce for all others (so the UI can react immediately).
return parameter.form_type === "input" ||
parameter.form_type === "textarea"
? 500
: 0;
},
);
const handleChange = async (