fix: types
This commit is contained in:
parent
7927526691
commit
d0a7ca9db1
|
|
@ -42,6 +42,7 @@ export const useAIMemoryListQuery = (params: MemoryListQuery = {}) => {
|
|||
const response = await followApi.ai.memory.list({
|
||||
...params,
|
||||
limit,
|
||||
// @ts-expect-error TODO: fix type
|
||||
before: pageParam ?? undefined,
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ function FeedSelectionOperationScreen() {
|
|||
.findLast((m) => m.parts?.some((p) => p.type === "tool-onboardingGetTrendingFeeds"))
|
||||
?.parts?.findLast((p) => p.type === "tool-onboardingGetTrendingFeeds")?.output
|
||||
|
||||
return output ? (decode(output) as FeedToSelect[]) : []
|
||||
return typeof output === "string" ? (decode(output) as any[]) : []
|
||||
}, [chatMessages])
|
||||
|
||||
const store = useStore()
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@ export const UserAvatar = ({ className }: { className?: string }) => {
|
|||
updatedAt: new Date().toISOString(),
|
||||
twoFactorEnabled: false,
|
||||
deleted: false,
|
||||
inactive: false,
|
||||
lastLoginMethod: "github",
|
||||
}
|
||||
} else {
|
||||
return null
|
||||
|
|
|
|||
|
|
@ -278,6 +278,8 @@ class APIMorph {
|
|||
roleEndAt: data.roleEndAt,
|
||||
deleted: data.deleted,
|
||||
stripeCustomerId: data.stripeCustomerId,
|
||||
inactive: data.inactive,
|
||||
lastLoginMethod: data.lastLoginMethod,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue