Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Jan 16, 2025
1 parent 1126dce commit 3ddd9b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/shinkai-desktop/src/pages/galxe-subscriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const GalxeSusbcriptions = () => {

const filteredSubscriptions = subscriptions
?.map((subscription) => {
const matchingFolder = subscriptionFolder?.child_folders?.find(
const matchingFolder = subscriptionFolder?.find(
(folder) =>
folder.path.split('/')?.[2] ===
subscription.shared_folder.replace(/^\/+/, ''),
Expand All @@ -78,8 +78,7 @@ export const GalxeSusbcriptions = () => {
})
.filter((item) => !!item);

const isUserSubscribedToKnowledge =
(subscriptionFolder?.child_folders ?? [])?.length > 0;
const isUserSubscribedToKnowledge = (subscriptionFolder ?? [])?.length > 0;

const inboxesWithSubscriptions: Inbox[] = inboxes.filter(
(inbox) =>
Expand Down

0 comments on commit 3ddd9b1

Please sign in to comment.