Skip to content

Commit 44a177c

Browse files
committed
エラー修正
1 parent 419f5c7 commit 44a177c

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

app/(docs)/@chat/chat/[chatId]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
cacheKeyForChat,
3-
cacheKeyForPage,
43
ChatWithMessages,
54
getChatOne,
65
initContext,

app/(docs)/@docs/[lang]/[pageId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default async function Page({
7777
);
7878
}
7979

80-
export async function getChatFromCache(path: PagePath, userId?: string) {
80+
async function getChatFromCache(path: PagePath, userId?: string) {
8181
// チャットの取得をキャッシュする。
8282
// use cacheの仕様で、drizzleオブジェクトとauthオブジェクトは引数に渡せない。
8383
// 一方、use cacheの関数内でheaders()にはアクセスできない。

app/(docs)/@docs/[lang]/[pageId]/pageContent.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { Fragment, useCallback, useEffect, useRef, useState } from "react";
44
import { ChatForm } from "./chatForm";
55
import { StyledMarkdown } from "@/markdown/markdown";
6-
import { useChatHistoryContext } from "./chatHistory";
76
import { useSidebarMdContext } from "@/sidebar";
87
import clsx from "clsx";
98
import { PageTransition } from "./pageTransition";

app/markdown/markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const components: Components = {
5454
<table className="table w-max" {...props} />
5555
</div>
5656
),
57-
hr: ({ node, ...props }) => null,
57+
hr: () => null,
5858
pre: ({ node, ...props }) => props.children,
5959
code: AutoCodeBlock,
6060
ins: MultiHighlightTag,

0 commit comments

Comments
 (0)