From ce81c89b03828750f10362fec094496b19260ff1 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 13 Aug 2025 13:32:17 +0200 Subject: [PATCH] perf: Only enrich with labels when no labels was prefetched Signed-off-by: Carl Schwan --- lib/Service/BoardService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Service/BoardService.php b/lib/Service/BoardService.php index b88111add..65096f983 100644 --- a/lib/Service/BoardService.php +++ b/lib/Service/BoardService.php @@ -621,7 +621,9 @@ class BoardService { if ($fullDetails) { $this->enrichWithStacks($board); - $this->enrichWithLabels($board); + if ($board->getLabels() === null) { + $this->enrichWithLabels($board); + } $this->enrichWithUsers($board); $this->enrichWithBoardSettings($board); $this->enrichWithActiveSessions($board);