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

Cloned project doesn't show up until page refresh #38

Open
body-clock opened this issue Nov 10, 2021 · 1 comment
Open

Cloned project doesn't show up until page refresh #38

body-clock opened this issue Nov 10, 2021 · 1 comment

Comments

@body-clock
Copy link

body-clock commented Nov 10, 2021

When a project is cloned, is doesn't show up in the dashboard until the page is refreshed. My guess is that state is not updated on project clone, so the list of projects doesn't update. Can potentially seem broken for users trying to work on cloned projects.

@body-clock body-clock changed the title C Cloned project doesn't show up until page refresh Nov 10, 2021
@body-clock
Copy link
Author

Can be solved by updating the state on case 'CLONE_PROJECT_SUCCESS' in dashboardReducer.js:

case 'CLONE_PROJECT_SUCCESS':
  state = {
    projects: action.payload.projects,
    images: action.payload.images,
  }
  break;

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

No branches or pull requests

1 participant