diff --git a/app/frontend/templates/panel/server_schedule_edit.html b/app/frontend/templates/panel/server_schedule_edit.html index 02a55f92..94e2d948 100644 --- a/app/frontend/templates/panel/server_schedule_edit.html +++ b/app/frontend/templates/panel/server_schedule_edit.html @@ -235,7 +235,14 @@ if (key != "start_time" && key != "cron_string" && key != "interval_type") { if (typeof value == "boolean") { return value - } else { + } + console.log(key) + if (key === "interval" && value === ""){ + return 0; + } + if (key === "command" && typeof(value === "integer")){ + return value.toString(); + }else { return (isNaN(value) ? value : +value); } } else {