Skip to content

Conversation

@arunapa
Copy link
Contributor

@arunapa arunapa commented May 4, 2023

Screen.Recording.2023-05-03.at.8.34.47.PM.mov

@arunapa arunapa added bug Something isn't working frontend Frontend specific (react) labels May 4, 2023
@arunapa arunapa self-assigned this May 4, 2023
@arunapa arunapa requested a review from longshuicy as a code owner May 4, 2023 01:36
@arunapa arunapa requested review from max-zilla and tcnichol May 4, 2023 01:36
@arunapa arunapa requested a review from lmarini May 4, 2023 01:40
const users = useSelector((state: RootState) => state.group.users);

const setUserRole = (datasetId: string, username: string, role: string) =>
const setUserRole = async (datasetId: string, username: string, role: string) =>
Copy link
Member

Choose a reason for hiding this comment

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

oh why is the async needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To make sure that when the subsequent listRoles is called, the update is already reflected in the backend

Copy link
Member

Choose a reason for hiding this comment

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

ah sorry i didn't realize you are directly using dispatch :-) My bad it makes perfect sense now.

Copy link
Member

@longshuicy longshuicy left a comment

Choose a reason for hiding this comment

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

works well approved

@tcnichol tcnichol merged commit 3cfd8f8 into main May 4, 2023
@max-zilla max-zilla deleted the 486-list-doesnt-get-populated-immediately-when-successfully-submitting-share-permissions branch July 20, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Frontend specific (react)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

List doesn't get populated immediately when successfully submitting share permissions

5 participants