From d31ec480fa2bce58db35470d0a22f2cbdea7cd14 Mon Sep 17 00:00:00 2001 From: Helloworld <1326521+LYZhelloworld@users.noreply.github.com> Date: Sat, 4 Jun 2022 17:32:25 +0800 Subject: [PATCH] Fix wrong usage of val --- tools/CopilotDesinger/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/CopilotDesinger/index.js b/tools/CopilotDesinger/index.js index 690be407cf..1d9e84182f 100644 --- a/tools/CopilotDesinger/index.js +++ b/tools/CopilotDesinger/index.js @@ -112,13 +112,13 @@ const action = (action_data, arr) => { const kills_input = input_text() .attr('type', 'number') .val(String(action_data.kills ?? "")) - .change(function () { action_data.kills = $(this).val !== "" ? Number($(this).val()) : undefined; }); + .change(function () { action_data.kills = $(this).val() !== "" ? Number($(this).val()) : undefined; }); tr.append($('