type fixes

This commit is contained in:
Ilion Beyst 2022-10-29 23:54:17 +02:00
parent 33cd3a85f3
commit 67c8a2780c
2 changed files with 3 additions and 3 deletions

View file

@ -117,7 +117,7 @@
label="name" label="name"
items={availableBots} items={availableBots}
bind:value={$selectedOpponent} bind:value={$selectedOpponent}
isClearable={false} clearable={false}
/> />
</div> </div>
<span>Map</span> <span>Map</span>
@ -127,7 +127,7 @@
label="name" label="name"
items={maps} items={maps}
bind:value={$selectedMap} bind:value={$selectedMap}
isClearable={false} clearable={false}
/> />
</div> </div>
<button class="submit-button play-button" on:click={submitBot}>Play</button> <button class="submit-button play-button" on:click={submitBot}>Play</button>

View file

@ -10,7 +10,7 @@
apiClient.get(`/api/bots/${bot_name}`), apiClient.get(`/api/bots/${bot_name}`),
apiClient.get(`/api/bots/${bot_name}/stats`), 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: "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; const { bot, owner, versions } = botData;