diff options
Diffstat (limited to 'FrontEnd/src/views/timeline/index.tsx')
-rw-r--r-- | FrontEnd/src/views/timeline/index.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/FrontEnd/src/views/timeline/index.tsx b/FrontEnd/src/views/timeline/index.tsx index c5bfd7ab..02d773dc 100644 --- a/FrontEnd/src/views/timeline/index.tsx +++ b/FrontEnd/src/views/timeline/index.tsx @@ -1,11 +1,17 @@ import React from "react"; -import { useParams } from "react-router"; +import { useParams } from "react-router-dom"; + +import { UiLogicError } from "@/common"; import TimelinePageTemplate from "../timeline-common/TimelinePageTemplate"; import TimelineCard from "./TimelineCard"; const TimelinePage: React.FC = () => { - const { name } = useParams<{ name: string }>(); + const { name } = useParams(); + + if (name == null) { + throw new UiLogicError("No route param 'name'."); + } const [reloadKey, setReloadKey] = React.useState<number>(0); |