Skip to content

Commit

Permalink
fix saved message rendering error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jshen123 committed Apr 26, 2023
1 parent 50a384f commit bd84241
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ model AgentTask {
id String @id @default(cuid())
agentId String
type String
status String
status String?
value String @db.Text
info String? @db.Text
sort Int
Expand Down
2 changes: 0 additions & 2 deletions src/components/ChatWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const ChatWindow = ({
const [hasUserScrolled, setHasUserScrolled] = useState(false);
const scrollRef = useRef<HTMLDivElement>(null);

console.log(messages);

const handleScroll = (event: React.UIEvent<HTMLDivElement>) => {
const { scrollTop, scrollHeight, clientHeight } = event.currentTarget;

Expand Down
6 changes: 3 additions & 3 deletions src/pages/agent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import Toast from "../../components/toast";
import { FaTrash, FaShare, FaBackspace } from "react-icons/fa";
import { env } from "../../env/client.mjs";

import { useTranslation } from 'react-i18next';
import { useTranslation } from "react-i18next";

const AgentPage: NextPage = () => {
const [ t ] = useTranslation();
const [t] = useTranslation();
const [showCopied, setShowCopied] = useState(false);
const router = useRouter();

Expand Down Expand Up @@ -75,7 +75,7 @@ const AgentPage: NextPage = () => {
</div>
<Toast
model={[showCopied, setShowCopied]}
title={t('Copied to clipboard! 馃殌')}
title={t("Copied to clipboard! 馃殌")}
className="bg-gray-950 text-sm"
/>
</DefaultLayout>
Expand Down

0 comments on commit bd84241

Please sign in to comment.