Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solving issue #1082 #1084

Closed
wants to merge 1 commit into from
Closed

Conversation

borthdor
Copy link

@borthdor borthdor commented Apr 5, 2024

Pull Request

Closes #1082

Updated the code to fix the named error. Please review

Copy link
Member

@alexanmtz alexanmtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @borthdor

I found out that this should be fixed on the back-end to not have any manipulation on the reducer side and make sure the updated data is returned, and we have our sync with status from Github needs to revisited.

Comment on lines +105 to +107
// Find the index of the task to be updated
const taskIndex = state.data.findIndex(t => t.id === updatedTaskData.id);
// Create a new array for tasks with the updated task data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're trying to find a task in a list of tasks, but this is a single task reducer, so it should have from the back-end the task updated, and I fixed for now on the back-end.

@alexanmtz
Copy link
Member

alexanmtz commented Apr 5, 2024

@borthdor see the solution merged here:
#1088

@alexanmtz alexanmtz closed this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When an issue is set to in_progress, it switches back to open after refresh
2 participants