From 6abcb877398aa93d4cc692167e2ba323b51b23d0 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 19 Mar 2024 14:47:17 +0100 Subject: [PATCH] Fix warnings --- HealthImport/Tabs/WorkoutTab.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/HealthImport/Tabs/WorkoutTab.swift b/HealthImport/Tabs/WorkoutTab.swift index 2680476..9d3f932 100644 --- a/HealthImport/Tabs/WorkoutTab.swift +++ b/HealthImport/Tabs/WorkoutTab.swift @@ -51,12 +51,8 @@ struct WorkoutTab: View { .refreshable { reloadAsync() } - .onChange(of: database.file, perform: { value in - reload() - }) - .onChange(of: filteredActivityType, perform: { _ in - reload() - }) + .onChange(of: database.file, reload) + .onChange(of: filteredActivityType, reload) .onAppear(perform: { if workouts.isEmpty { reload()