From 2581360a901ca83d1b4cfa865ccfdfc892afc002 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Mon, 20 Sep 2021 00:38:40 +0100 Subject: [PATCH] Crate page deep linking --- chartered-frontend/src/index.tsx | 2 +- chartered-frontend/src/pages/crate/CrateView.tsx | 45 ++++++++++++++------------------------------- 2 files changed, 13 insertions(+), 34 deletions(-) diff --git a/chartered-frontend/src/index.tsx b/chartered-frontend/src/index.tsx index eeceeda..4d2d157 100644 --- a/chartered-frontend/src/index.tsx +++ a/chartered-frontend/src/index.tsx @@ -44,7 +44,7 @@ /> } /> ("readme"); + if (!currentTab) { + return + } const { response: crateInfo, error } = useAuthenticatedRequest({ auth, @@ -138,46 +141,22 @@ -- rgit 0.1.3