feat: support nav and pages in cms
This commit is contained in:
parent
e1b0dc5243
commit
f5adf0ba06
35 changed files with 235 additions and 444 deletions
|
@ -40,8 +40,8 @@ const fetchAllLinks = async () => {
|
|||
if (data.length < PAGE_SIZE) fetchMore = false
|
||||
|
||||
for (const link of data) {
|
||||
link.tags = await fetchTagsForLink(link.id)
|
||||
link.type = 'link'
|
||||
link['tags'] = await fetchTagsForLink(link.id)
|
||||
link['type'] = 'link'
|
||||
}
|
||||
|
||||
links = links.concat(data)
|
||||
|
|
Reference in a new issue