Skip to content

Commit 1334cac

Browse files
committed
sike i forgot how javascript works
1 parent 82371f9 commit 1334cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mystbin/frontend/pages/[pid].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export default function Pastey(props: PropsWithoutRef<{ paste }>) {
6767
}
6868

6969
export const getServerSideProps: GetServerSideProps = async ({ query }) => {
70-
const { _pid } = query;
71-
let pid = _pid.toString().split(".", 1)[0];
70+
let { pid } = query;
71+
pid = pid.toString().split(".", 1)[0];
7272
const response = await fetch(
7373
`${config["site"]["backend_site"]}/paste/${pid}`
7474
);

0 commit comments

Comments
 (0)