Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit a9fd0b7

Browse files
committed
fix: always trigger features ref update
1 parent d7dcb03 commit a9fd0b7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

components/PanelDocs.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
const guide = useGuideStore()
32
const { page } = useContent()
43
54
const sourceUrl = computed(() => page.value?._file

stores/guide.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const useGuideStore = defineStore('guide', () => {
4646
preview.location.fullPath = guide?.startingUrl || '/'
4747
preview.updateUrl()
4848

49-
features.value = guide?.features || defaultFeatures
49+
features.value = guide?.features || { ...defaultFeatures }
5050
currentGuide.value = guide
5151
showingSolution.value = withSolution
5252

0 commit comments

Comments
 (0)