A social knowledge tool for researchers built on ATProto

fix build error and unecessary imports

+2 -3
+1 -2
src/webapp/features/cards/components/addCardToModal/AddCardToModal.tsx
··· 1 1 import type { UrlCard } from '@/api-client'; 2 2 import { DEFAULT_OVERLAY_PROPS } from '@/styles/overlays'; 3 - import { Anchor, Modal, Stack, Text } from '@mantine/core'; 3 + import { Modal, Stack, Text } from '@mantine/core'; 4 4 import { notifications } from '@mantine/notifications'; 5 5 import { Suspense, useState } from 'react'; 6 6 import CollectionSelectorError from '../../../collections/components/collectionSelector/Error.CollectionSelector'; ··· 11 11 import useUpdateCardAssociations from '../../lib/mutations/useUpdateCardAssociations'; 12 12 import CollectionSelectorSkeleton from '@/features/collections/components/collectionSelector/Skeleton.CollectionSelector'; 13 13 import useAddCard from '../../lib/mutations/useAddCard'; 14 - import { SelectableCollectionItem } from '@/features/collections/types'; 15 14 16 15 interface Props { 17 16 isOpen: boolean;
+1 -1
src/webapp/hooks/useUrlMetadata.ts
··· 46 46 }); 47 47 48 48 // If there's an existing card, fetch its collections 49 - if (existingCard.cardId) { 49 + if (existingCard.card) { 50 50 try { 51 51 setExistingCardCollections(existingCard.collections); 52 52 } catch (cardErr: any) {