Skip to content

Commit 5e19b76

Browse files
fix(deepLinks): fix broken check against org reference (#5200)
1 parent 57be923 commit 5e19b76

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cypress/e2e/shared/deepLinks.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ describe('Deep linking', () => {
1212
// so you'll probably need to follow-up with the docs and/or marketing teams.
1313
it('should be redirected to the approprate page from a shortened link', () => {
1414
cy.get('@org').then((org: Organization) => {
15-
cy.wait(1000)
1615
cy.visit('/me/about')
1716
cy.location('pathname').should('eq', `/orgs/${org.id}/about`)
1817

src/shared/components/NotFound.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const NotFound: FC = () => {
132132
const org = useRef<Organization>(reduxOrg)
133133

134134
const handleDeepLink = useCallback(async () => {
135-
if (!org) {
135+
if (!org.current) {
136136
setIsFetchingOrg(true)
137137
org.current = await fetchOrg()
138138
}

0 commit comments

Comments
 (0)