summaryrefslogtreecommitdiff
path: root/web/source/settings/admin/reports/detail.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/source/settings/admin/reports/detail.jsx')
-rw-r--r--web/source/settings/admin/reports/detail.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/source/settings/admin/reports/detail.jsx b/web/source/settings/admin/reports/detail.jsx
index abec6210e..0fd7802bc 100644
--- a/web/source/settings/admin/reports/detail.jsx
+++ b/web/source/settings/admin/reports/detail.jsx
@@ -34,8 +34,10 @@ const { TextArea } = require("../../components/form/inputs");
const MutationButton = require("../../components/form/mutation-button");
const Username = require("./username");
+const { useBaseUrl } = require("../../lib/navigation/util");
-module.exports = function ReportDetail({ baseUrl }) {
+module.exports = function ReportDetail({ }) {
+ const baseUrl = useBaseUrl();
let [_match, params] = useRoute(`${baseUrl}/:reportId`);
if (params?.reportId == undefined) {
return <Redirect to={baseUrl} />;