format
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ const getPublicCollectionData = async (
|
||||
) => {
|
||||
const res = await fetch("/api/v1/public/collections/" + collectionId);
|
||||
|
||||
if (res.status === 400) return { response: "Collection not found.", status: 400 };
|
||||
if (res.status === 400)
|
||||
return { response: "Collection not found.", status: 400 };
|
||||
|
||||
const data = await res.json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user