From c74a4e736ed4b00d72ac44ed6ee9adcc5434588a Mon Sep 17 00:00:00 2001 From: cranci1 <100066266+cranci1@users.noreply.github.com> Date: Tue, 15 Jul 2025 10:46:45 +0200 Subject: [PATCH] fixed @50n50 beautiful crash --- Sora/Views/SearchView/SearchResultsGrid.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sora/Views/SearchView/SearchResultsGrid.swift b/Sora/Views/SearchView/SearchResultsGrid.swift index b7c39fb..8c5c63d 100644 --- a/Sora/Views/SearchView/SearchResultsGrid.swift +++ b/Sora/Views/SearchView/SearchResultsGrid.swift @@ -38,9 +38,8 @@ struct SearchResultsGrid: View { ForEach(items) { item in NavigationLink(destination: MediaInfoView(title: item.title, imageUrl: item.imageUrl, href: item.href, module: selectedModule) - .onDisappear { - - } + .environmentObject(moduleManager) + .environmentObject(libraryManager) ) { ZStack { LazyImage(url: URL(string: item.imageUrl)) { state in