Skip to content

Commit 66fc13f

Browse files
committed
localStorageのキーを修正
1 parent 7fd59cc commit 66fc13f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/[docs_id]/chatHistory.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function ChatHistoryProvider({ children }: { children: ReactNode }) {
6262
newChatHistories[sectionId][chatId] = messages;
6363
setChatHistories(newChatHistories);
6464
localStorage.setItem(
65-
`chat-${sectionId}-${chatId}`,
65+
`chat/${sectionId}/${chatId}`,
6666
JSON.stringify(messages)
6767
);
6868
return chatId;
@@ -80,7 +80,7 @@ export function ChatHistoryProvider({ children }: { children: ReactNode }) {
8080
];
8181
setChatHistories(newChatHistories);
8282
localStorage.setItem(
83-
`chat-${sectionId}-${chatId}`,
83+
`chat/${sectionId}/${chatId}`,
8484
JSON.stringify(newChatHistories[sectionId][chatId])
8585
);
8686
}

0 commit comments

Comments
 (0)