Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #938 from prezly/feature/care-5040-preview-links-a…
Browse files Browse the repository at this point in the history
…re-not-working

[CARE-5040] Fix - Correctly handle preview query param
  • Loading branch information
kudlajz authored May 17, 2024
2 parents fcd0cc3 + ef1a8be commit 420ac85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/PreviewPageMask/PreviewPageMask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import styles from './PreviewPageMask.module.scss';

export function PreviewPageMask() {
const searchParams = useSearchParams();
const preview = JSON.parse(searchParams.get('preview') ?? 'false');
const mask = JSON.parse(searchParams.get('mask') || 'false');

if (!preview) {
if (!mask) {
return null;
}

Expand Down

0 comments on commit 420ac85

Please sign in to comment.