From 874b8cf9334decf5577ab271f27ccf8cd408611a Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 10:12:54 +0000 Subject: [PATCH] Fix Tooltip EXC_BAD_ACCESS from Optional.map initializer --- .../RepoPrompt/Infrastructure/UI/Components/TooltipBubble.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/RepoPrompt/Infrastructure/UI/Components/TooltipBubble.swift b/Sources/RepoPrompt/Infrastructure/UI/Components/TooltipBubble.swift index 3c555d631..eb7f3dc73 100644 --- a/Sources/RepoPrompt/Infrastructure/UI/Components/TooltipBubble.swift +++ b/Sources/RepoPrompt/Infrastructure/UI/Components/TooltipBubble.swift @@ -257,7 +257,7 @@ extension View { _ text: String?, _ placement: TooltipPlacement = .top ) -> some View { - modifier(HoverTooltipModifier(tooltipContent: text.map(TooltipContent.init), placement: placement)) + modifier(HoverTooltipModifier(tooltipContent: text.map { TooltipContent($0) }, placement: placement)) } /// Adds a pure-SwiftUI hover tooltip with attributed text for small emphasis.