fix: show names in admin tag panel

This commit is contained in:
Marcel
2026-03-15 21:08:06 +00:00
parent c2625657e2
commit 62189d8bb3
3 changed files with 5 additions and 10 deletions

View File

@@ -59,11 +59,8 @@ public class TagController {
}
@GetMapping
public List<String> searchTags(@RequestParam(defaultValue = "") String query) {
return tagRepository.findByNameContainingIgnoreCase(query)
.stream()
.map(Tag::getName)
.toList();
public List<Tag> searchTags(@RequestParam(defaultValue = "") String query) {
return tagRepository.findByNameContainingIgnoreCase(query);
}
}