From 3e92a3967a045b803ff19819704573e71d81e2ef Mon Sep 17 00:00:00 2001 From: Justin Sherrill Date: Wed, 20 Nov 2024 14:05:15 -0500 Subject: [PATCH] Fixes 5035: enable uploads in prod preview --- .../ContentListTable/components/AddContent/AddContent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Pages/Repositories/ContentListTable/components/AddContent/AddContent.tsx b/src/Pages/Repositories/ContentListTable/components/AddContent/AddContent.tsx index a44b6deb..9117dc9d 100644 --- a/src/Pages/Repositories/ContentListTable/components/AddContent/AddContent.tsx +++ b/src/Pages/Repositories/ContentListTable/components/AddContent/AddContent.tsx @@ -100,8 +100,9 @@ const AddContent = ({ isEdit = false }: Props) => { const { repoUUID: uuid } = useParams(); const navigate = useNavigate(); const rootPath = useRootPath(); - const { isProd } = useChrome(); + const { isProd, isBeta } = useChrome(); const isInProd = useMemo(() => isProd(), []); + const isInBeta = useMemo(() => isBeta(), []); const [errors, setErrors] = useState>({}); const { data, isLoading: isLoadingInitialContent, isSuccess } = useFetchContent(uuid!, isEdit); @@ -492,7 +493,7 @@ const AddContent = ({ isEdit = false }: Props) => { } /> - +