Merge pull request #80 from Telecominfraproject/bugfix/NETEXP-741

bugfix/NETEXP-741: Passed down currentUserId to accounts page
This commit is contained in:
Sean Macfarlane
2020-12-12 15:45:18 -05:00
committed by GitHub

View File

@@ -66,7 +66,7 @@ const DELETE_USER = gql`
`;
const Accounts = () => {
const { customerId } = useContext(UserContext);
const { customerId, id: currentUserId } = useContext(UserContext);
const { data, loading, error, refetch, fetchMore } = useQuery(GET_ALL_USERS, {
variables: { customerId },
@@ -173,6 +173,7 @@ const Accounts = () => {
return (
<AccountsPage
data={data.getAllUsers.items}
currentUserId={currentUserId}
onLoadMore={handleLoadMore}
onCreateUser={handleCreateUser}
onEditUser={handleEditUser}