Merge pull request #660 from IsaacWise06/issue-646

fix(collections): Redirect to dashboard or login for non-public collections
This commit is contained in:
Daniel
2024-08-14 17:04:25 -04:00
committed by GitHub
4 changed files with 13 additions and 4 deletions
@@ -63,7 +63,8 @@ async function processBookmarks(
) as Element;
if (collectionName) {
const collectionNameContent = (collectionName.children[0] as TextNode)?.content;
const collectionNameContent = (collectionName.children[0] as TextNode)
?.content;
if (collectionNameContent) {
collectionId = await createCollection(
userId,
@@ -274,4 +275,3 @@ function processNodes(nodes: Node[]) {
nodes.forEach(findAndProcessDL);
return nodes;
}