diff options
Diffstat (limited to 'frontend/src/components/AddFeedForm.tsx')
| -rw-r--r-- | frontend/src/components/AddFeedForm.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/components/AddFeedForm.tsx b/frontend/src/components/AddFeedForm.tsx index 519f9e3..6d18318 100644 --- a/frontend/src/components/AddFeedForm.tsx +++ b/frontend/src/components/AddFeedForm.tsx @@ -8,6 +8,8 @@ interface Props { onFeedAdded?: () => void; } +const urqlContextFeed = { additionalTypenames: ["Feed"] }; + export function AddFeedForm({ onFeedAdded }: Props) { const [url, setUrl] = useState(""); const [error, setError] = useState<string | null>(null); @@ -20,7 +22,7 @@ export function AddFeedForm({ onFeedAdded }: Props) { setError(null); try { - const result = await addFeed({ url: url.trim() }); + const result = await addFeed({ url: url.trim() }, urqlContextFeed); if (result.error) { setError(result.error.message); } else if (result.data) { |
