Skip to content

Commit

Permalink
minor fix (#198)
Browse files Browse the repository at this point in the history
* test vue

* new error added

* doc indiv new page added

* major update on doc page

* husky removed

* some minor issue fix
  • Loading branch information
devvsakib authored Jul 27, 2024
1 parent a0280d5 commit 9e0a8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script src="../path/to/flowbite/dist/flowbite.min.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions src/pages/Doc/single doc/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const DocDetail = () => {
try {
const response = await fetch(`/posts/${slug}.md`);
if (!response.ok) {
throw new Error('Network response was not ok');
throw new Error(`Failed to fetch content: ${response.statusText}`);
}
const text = await response.text();
const text = await response.text(); // Ensure you're reading text
setContent(text);
} catch (error) {
setError(error.message);
Expand Down

0 comments on commit 9e0a8f0

Please sign in to comment.