Merge pull request #398 from trails-cool/stigi/komoot-import
Fix import-all skipping every other workout
This commit is contained in:
commit
3f1d043377
2 changed files with 0 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue