Closed Small-Systems closed 2 years ago
Route queries, used for the token for previewing drafts are not being passed correctly into the getPage function. Query needs to be a rest parameter:
async function getPage(id, { revalidate = false, ...query } = {})
Thanks for the feedback! Fixed in https://github.com/johannschopplich/kirby-vue3-starterkit/commit/8391f6c47fa50c69b4e233b8478a2f48888ae981.
Route queries, used for the token for previewing drafts are not being passed correctly into the getPage function. Query needs to be a rest parameter:
async function getPage(id, { revalidate = false, ...query } = {})