Skip to content

Commit

Permalink
optimize file routing
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Nov 28, 2024
1 parent 98ed822 commit 9c968ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/shared/Files/Menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const Menu = memo(
const { fileId } = useParams()
const navigate = useNavigate()
const { pathname } = useLocation()
// also show preview if Vorschau is omitted (until that rout is used for something else)
const isPreview = pathname.endsWith('Vorschau') || pathname.includes(fileId)
const client = useApolloClient()
const uploaderCtx = useContext(UploaderContext)
Expand Down

0 comments on commit 9c968ca

Please sign in to comment.