Skip to content

Commit

Permalink
Don't refresh Communities page when on focus, Fix wrong redirect at e…
Browse files Browse the repository at this point in the history
…ndpoints (#20)

* dont refresh Communities page when on focus

* remove reduntant '/' from endpoint urls
  • Loading branch information
lionick authored Oct 10, 2023
1 parent 3aab886 commit e4f157c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routers/communities.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def read_min_date_communities(
WHERE tenenv_id={0}
""".format(tenenv_id)).one()
return min_date
@router.get("/members_bystatus/")
@router.get("/members_bystatus")
async def read_members_bystatus(
*,
session: Session = Depends(get_session),
Expand Down Expand Up @@ -107,7 +107,7 @@ async def read_communities(
return communities


@router.get("/communities/")
@router.get("/communities")
async def read_community(
*,
session: Session = Depends(get_session),
Expand Down
1 change: 1 addition & 0 deletions javascript/src/Pages/Communities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const Communities = () => {
[tenenvKey, {tenantId: tenant, environment: environment}],
getTenenv, {
retry: 0,
refetchOnWindowFocus: false
})

useEffect(() => {
Expand Down

0 comments on commit e4f157c

Please sign in to comment.