Merge pull request #398 from trails-cool/stigi/komoot-import

Fix import-all skipping every other workout
This commit is contained in:
Ullrich Schäfer 2026-05-23 13:08:09 +02:00 committed by GitHub
commit 3f1d043377
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View file

@ -205,10 +205,6 @@ export default function SyncImportPage({ loaderData }: Route.ComponentProps) {
const importAllFetcher = useFetcher<{ imported?: string }>();
const importAllRef = useRef({ index: 0, workouts: importableWorkouts });
useEffect(() => {
importAllRef.current.workouts = importableWorkouts;
}, [importableWorkouts]);
useEffect(() => {
if (!importAllActive) return;
if (importAllFetcher.state !== "idle") return;

View file

@ -162,10 +162,6 @@ export default function KomootImportPage({ loaderData }: Route.ComponentProps) {
const importAllFetcher = useFetcher<{ imported?: string }>();
const importAllRef = useRef({ index: 0, workouts: importableWorkouts });
useEffect(() => {
importAllRef.current.workouts = importableWorkouts;
}, [importableWorkouts]);
useEffect(() => {
if (!importAllActive) return;
if (importAllFetcher.state !== "idle") return;