tangled
alpha
login
or
join now
cosmik.network
/
semble
43
fork
atom
A social knowledge tool for researchers built on ATProto
43
fork
atom
overview
issues
13
pulls
pipelines
fix build error and unecessary imports
Wesley Finck
4 months ago
a8531bc1
55a2ff39
+2
-3
2 changed files
expand all
collapse all
unified
split
src
webapp
features
cards
components
addCardToModal
AddCardToModal.tsx
hooks
useUrlMetadata.ts
+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
3
-
import { Anchor, Modal, Stack, Text } from '@mantine/core';
3
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
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
49
-
if (existingCard.cardId) {
49
49
+
if (existingCard.card) {
50
50
try {
51
51
setExistingCardCollections(existingCard.collections);
52
52
} catch (cardErr: any) {