Skip to content

Commit

Permalink
Update website
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSeage committed Nov 11, 2023
1 parent e5c24d5 commit c18489d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions website/app/[locale]/(root)/play/Play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ export default function Play(props: any) {
);

useEffect(() => {
const queryLayout = searchParams.get('layout')
const queryPreview = searchParams.get('preview')
const queryTab = searchParams.get('tab')
const urlSearchParams = new URLSearchParams(location.search)
const queryLayout = urlSearchParams.get('layout')
const queryPreview = urlSearchParams.get('preview')
const queryTab = urlSearchParams.get('tab')
if (queryLayout) {
setLayout(queryLayout)
}
Expand Down
2 changes: 0 additions & 2 deletions website/app/[locale]/(root)/play/[shareId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { initializeFirestore } from 'firebase-admin/firestore'
import { notFound } from "next/navigation"
import { collectDictionary } from 'websites/dictionaries'

export const dynamic = 'force-dynamic'

export default async function Page(props: any) {
const store = initializeFirestore(app)
const { shareId, locale } = props.params
Expand Down

0 comments on commit c18489d

Please sign in to comment.