Repository navigation
Upgrade to payload v3.58.0 & add view doc button - #571
Conversation
| }) | ||
| const page = pageRes.docs[0] | ||
| const pageTenant = await resolveTenant(page.tenant) | ||
| const canonicalUrl = (await getCanonicalUrlForSlug(pageTenant.slug, page.slug)) || '' |
There was a problem hiding this comment.
In the case where the await doesn't throw, why can we get an empty result and have to || ''? Will a ViewDocumentButton with an empty URI go to some nice 404/oops page?
There was a problem hiding this comment.
Good call - I was just trying to please the linter. I changed it to return null ifcanonicalUrl is empty
2d68e63 to
b88b015
Compare
|
Not sure when this changed but the standalone-seed script now needs an Want to add that here so other PRs that have to merge this change in will get seed data? |
Description
Issues
Resolves #339
Resolves #382
Resolves #565