Skip to content

Commit

Permalink
fix select game button not working in list view
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Oct 24, 2024
1 parent b07f487 commit 7e592f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions backend/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ import (
func WalkDirExt(root string, exts []string) ([]string, error) {
var files []string
err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error {
if d.IsDir() {
return nil
}

for _, s := range exts {
if strings.HasSuffix(path, "."+s) {
files = append(files, path)
return nil
if !d.IsDir() {
for _, s := range exts {
if strings.HasSuffix(path, "."+s) {
files = append(files, path)
return nil
}
}
}

return nil
})

return files, err
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/GameSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ onMounted(async () => {
<Button
:label="$t('game-selection.select-button')"
class="list-select-game-btn flex-auto md:flex-initial"
@click="setSelectedGame(game)"
@click="selectGame(game)"
/>
</div>
</div>
Expand Down

0 comments on commit 7e592f3

Please sign in to comment.