Update tsconfig

Reorganize keys and make checks a bit more strict
This commit is contained in:
Joscha 2025-01-29 00:56:35 +01:00
parent 5b04ca821c
commit fb5aa6a25c
2 changed files with 31 additions and 21 deletions

View file

@ -40,7 +40,8 @@ export const useReposStore = defineStore("repos", () => {
}
}
function selectRepo(id: string) {
function selectRepo(id: string | undefined) {
if (id === undefined) return;
if (repos.value.get(id) === undefined) return;
selectedRepoId.value = id;
}