fix: loading tasks with infinite scroll in kanban buckets #920
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#920
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/infinite-scroll-buckets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ping @dpschen I think this is a regression introduced when migrating to vue 3.
Possible =) Don't remember this to have happened though.
@ -232,3 +232,1 @@
const bucketIndex = findIndexById(ctx.state.buckets, bucketId)
const isLoading = ctx.state.bucketLoading[bucketIndex] ?? false
const isLoading = ctx.state.bucketLoading[bucketId] ?? false
It does make sense to use the bucketId directly.
Regardless of that: shouldn't the
findIndexById
not also return the correct index — which should be identical to the id?If so the
findIndexById
method should either be fixed or not used at all.I used
[bucketId]
instead of index because I thought this would make it easier to refactor the bucket to use objects with ids as keys in the future.It looks like it does not. Why should the index be identical to the id? The index ist just the position of the object in the array?
:D :D
That really does make sense!
I have not clue, I guess I just (mis)read this to be true when I wrote that code.
We should probably look out for other unresolved issues in combination with that
findIndexById
function.