Merge branch 'dev' into fixes
This commit is contained in:
@@ -61,7 +61,7 @@ export default function NewLinkModal({ onClose }: Props) {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (router.query.id) {
|
||||
if (router.pathname.startsWith("/collections/") && router.query.id) {
|
||||
const currentCollection = collections.find(
|
||||
(e) => e.id == Number(router.query.id)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user