Skip to content

Commit 54d7819

Browse files
authored
fix: colelctions typo (#1422)
1 parent 8c2a6aa commit 54d7819

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

web/src/app/marketplace/collections/[collectionId]/documents/[documentId]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default async function Page({
1212
const { collectionId, documentId } = await params;
1313
const serverApi = await getServerApi();
1414

15-
const [colelctionRes, documentPreviewRes] = await Promise.all([
15+
const [collectionRes, documentPreviewRes] = await Promise.all([
1616
serverApi.defaultApi.marketplaceCollectionsCollectionIdGet({
1717
collectionId,
1818
}),
@@ -25,7 +25,7 @@ export default async function Page({
2525
]);
2626

2727
const documentPreview = toJson(documentPreviewRes.data);
28-
const collection = toJson(colelctionRes.data);
28+
const collection = toJson(collectionRes.data);
2929

3030
return (
3131
<PageContainer>

web/src/components/chat/chat-input.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export const ChatInput = ({
320320
}
321321
}, [modelName, providerModels, setModelName]);
322322

323-
const enabledColelctions = useMemo(() => {
323+
const enabledCollections = useMemo(() => {
324324
return collections.filter((c) => !selectedCollections.includes(c.id || ''));
325325
}, [collections, selectedCollections]);
326326

@@ -456,8 +456,8 @@ export const ChatInput = ({
456456
/>
457457
</MentionInput>
458458
<MentionContent className="w-60">
459-
{enabledColelctions.length ? (
460-
enabledColelctions.map((collection) => (
459+
{enabledCollections.length ? (
460+
enabledCollections.map((collection) => (
461461
<MentionItem
462462
key={collection.id}
463463
value={collection.id || ''}

web/src/i18n/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
"search_document": "Search documents",
298298
"upload": "Upload",
299299
"browse_files": "Browse Files",
300-
"save_to_collection": "Save to colelction",
300+
"save_to_collection": "Save to collection",
301301
"drag_drop_files_here": "Drag & drop files here",
302302
"or_click_to_browse_files": "Or click to browse (max 100MB for each file)",
303303
"last_updated": "Last Updated",

web/src/i18n/en-US/page_documents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"search_document": "Search documents",
1616
"upload": "Upload",
1717
"browse_files": "Browse Files",
18-
"save_to_collection": "Save to colelction",
18+
"save_to_collection": "Save to collection",
1919
"drag_drop_files_here": "Drag & drop files here",
2020
"or_click_to_browse_files": "Or click to browse (max 100MB for each file)",
2121
"last_updated": "Last Updated",

0 commit comments

Comments
 (0)