Skip to content

Commit 7f7bf35

Browse files
committed
build errors
1 parent f47b9a5 commit 7f7bf35

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

apps/web/src/app/chat/page.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import { useChat } from 'ai/react';
44
import { useQueryState } from 'nuqs';
5+
import { Suspense } from 'react';
56

6-
export default function Chat() {
7+
function ChatContent() {
78
const { messages, input, handleInputChange, handleSubmit } = useChat();
89
const [token] = useQueryState('token');
10+
911
return (
1012
<div className="flex flex-col w-full max-w-md py-24 mx-auto stretch">
1113
{messages.map(m => (
@@ -31,4 +33,16 @@ export default function Chat() {
3133
</form>
3234
</div>
3335
);
36+
}
37+
38+
export default function Chat() {
39+
return (
40+
<Suspense fallback={
41+
<div className="flex flex-col w-full max-w-md py-24 mx-auto stretch">
42+
<p>Loading chat...</p>
43+
</div>
44+
}>
45+
<ChatContent />
46+
</Suspense>
47+
);
3448
}

apps/web/src/lib/tinybird.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export async function getInstalledDataSources(token: string): Promise<string[]>
9595
if (result.data[0]?.count > 0) {
9696
installedSources.push(source.name);
9797
}
98-
} catch (error) {
98+
} catch {
9999
continue;
100100
}
101101
}

0 commit comments

Comments
 (0)