mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
chore: ran linting
This commit is contained in:
parent
b44c1ee034
commit
33626d4f91
6 changed files with 16 additions and 16 deletions
|
|
@ -106,9 +106,7 @@ export function MemoryContent() {
|
|||
if (!memory) {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center py-16 text-center">
|
||||
<h3 className="text-base font-medium text-foreground">
|
||||
What does SurfSense remember?
|
||||
</h3>
|
||||
<h3 className="text-base font-medium text-foreground">What does SurfSense remember?</h3>
|
||||
<p className="mt-2 max-w-sm text-sm text-muted-foreground">
|
||||
Nothing yet. SurfSense picks up on your preferences and context as you chat.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -18,9 +18,11 @@ import { cacheKeys } from "@/lib/query-client/cache-keys";
|
|||
|
||||
const MEMORY_HARD_LIMIT = 25_000;
|
||||
|
||||
const SearchSpaceSchema = z.object({
|
||||
shared_memory_md: z.string().optional().default(""),
|
||||
}).passthrough();
|
||||
const SearchSpaceSchema = z
|
||||
.object({
|
||||
shared_memory_md: z.string().optional().default(""),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
interface TeamMemoryManagerProps {
|
||||
searchSpaceId: number;
|
||||
|
|
@ -67,7 +69,7 @@ export function TeamMemoryManager({ searchSpaceId }: TeamMemoryManagerProps) {
|
|||
await baseApiService.post(
|
||||
`/api/v1/searchspaces/${searchSpaceId}/memory/edit`,
|
||||
SearchSpaceSchema,
|
||||
{ body: { query } },
|
||||
{ body: { query } }
|
||||
);
|
||||
setEditQuery("");
|
||||
await queryClient.invalidateQueries({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue