diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-10-29 23:54:17 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-10-30 16:23:35 +0100 |
commit | 67c8a2780c92d247b7343b2107f3d69fc9763797 (patch) | |
tree | e94a9aeb7cbcf24b62f973bb2def8d5402f9cad7 /web/pw-server/src | |
parent | 33cd3a85f322ba5aaf4d85275e111a1e7deb5dd9 (diff) | |
download | planetwars.dev-67c8a2780c92d247b7343b2107f3d69fc9763797.tar.xz planetwars.dev-67c8a2780c92d247b7343b2107f3d69fc9763797.zip |
type fixes
Diffstat (limited to 'web/pw-server/src')
-rw-r--r-- | web/pw-server/src/lib/components/SubmitPane.svelte | 4 | ||||
-rw-r--r-- | web/pw-server/src/routes/bots/[bot_name]/index.svelte | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/pw-server/src/lib/components/SubmitPane.svelte b/web/pw-server/src/lib/components/SubmitPane.svelte index 581d717..e46166c 100644 --- a/web/pw-server/src/lib/components/SubmitPane.svelte +++ b/web/pw-server/src/lib/components/SubmitPane.svelte @@ -117,7 +117,7 @@ label="name" items={availableBots} bind:value={$selectedOpponent} - isClearable={false} + clearable={false} /> </div> <span>Map</span> @@ -127,7 +127,7 @@ label="name" items={maps} bind:value={$selectedMap} - isClearable={false} + clearable={false} /> </div> <button class="submit-button play-button" on:click={submitBot}>Play</button> diff --git a/web/pw-server/src/routes/bots/[bot_name]/index.svelte b/web/pw-server/src/routes/bots/[bot_name]/index.svelte index 37d9da9..b046754 100644 --- a/web/pw-server/src/routes/bots/[bot_name]/index.svelte +++ b/web/pw-server/src/routes/bots/[bot_name]/index.svelte @@ -10,7 +10,7 @@ apiClient.get(`/api/bots/${bot_name}`), apiClient.get(`/api/bots/${bot_name}/stats`), apiClient.get("/api/matches", { bot: params["bot_name"], count: "20" }), - apiClient.get("/api/matches", { bot: params["bot_name"], count: "10", had_errors: true }), + apiClient.get("/api/matches", { bot: params["bot_name"], count: "10", had_errors: "true" }), ]); const { bot, owner, versions } = botData; |