Skip to content

Commit a11eea7

Browse files
committed
error再修正
1 parent a5f41d2 commit a11eea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function Sidebar() {
2626
{ id: "python-9", title: "9. ジェネレータとデコレータ" },
2727
];
2828

29+
if (error) return console.error(error)
2930
if (isLoading) return (
3031
<div className="bg-base-200 min-h-full w-80 p-4">
3132
<h2 className="hidden text-xl font-bold mb-4">
@@ -40,8 +41,7 @@ export function Sidebar() {
4041
)}
4142
</ol>
4243
</div>
43-
)
44-
if (error) return console.error()
44+
)
4545

4646

4747

0 commit comments

Comments
 (0)