docs(footer): fix when page is not defined

This commit is contained in:
Sébastien Chopin
2023-05-17 17:17:22 +02:00
parent 7f00ec6c3d
commit 0931372157

View File

@@ -1,6 +1,7 @@
<template>
<footer class="flex items-center justify-between gap-1.5">
<UButton
v-if="page"
:to="`https://github.com/nuxtlabs/ui/edit/dev/docs/content/${page._file}`"
label="Edit on GitHub"
color="gray"