Skip to content

Commit

Permalink
Potential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nand2 committed Aug 27, 2024
1 parent 3c3bca3 commit af9149e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/src/components/AdminPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ const config = ref(fileContent.value ? decodeConfigFileContent(fileContent.value
})
// When the file content is fetched, set the text
watch(fileContent, (newValue) => {
config.value = decodeConfigFileContent(newValue)
if(fileContentLoaded.value) {
config.value = decodeConfigFileContent(newValue)
}
});
// Computed: Get the list of markdown files (ending by .md), ordered by folder then alphabetically
Expand Down

0 comments on commit af9149e

Please sign in to comment.