Fix a bug with task fields (#1367)

This commit is contained in:
Shuchang Zheng 2024-12-10 13:29:34 -08:00 committed by GitHub
parent 677d85283e
commit 33b8bc60ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,8 +126,8 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
onIconClick={() => { onIconClick={() => {
setParametersPanelField("url"); setParametersPanelField("url");
}} }}
onChange={(value) => { onChange={(event) => {
handleChange("url", value); handleChange("url", event.target.value);
}} }}
value={inputs.url} value={inputs.url}
placeholder={placeholders["task"]["url"]} placeholder={placeholders["task"]["url"]}
@ -145,8 +145,8 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
onIconClick={() => { onIconClick={() => {
setParametersPanelField("navigationGoal"); setParametersPanelField("navigationGoal");
}} }}
onChange={(value) => { onChange={(event) => {
handleChange("navigationGoal", value); handleChange("navigationGoal", event.target.value);
}} }}
value={inputs.navigationGoal} value={inputs.navigationGoal}
placeholder={placeholders["task"]["navigationGoal"]} placeholder={placeholders["task"]["navigationGoal"]}