diff --git a/zettelkasten-front/src/components/cards/ViewCardOptionsMenu.tsx b/zettelkasten-front/src/components/cards/ViewCardOptionsMenu.tsx index 42abe9a..99f07c0 100644 --- a/zettelkasten-front/src/components/cards/ViewCardOptionsMenu.tsx +++ b/zettelkasten-front/src/components/cards/ViewCardOptionsMenu.tsx @@ -6,6 +6,7 @@ import { saveExistingCard } from "../../api/cards"; import { Button } from "../../components/Button"; import { FileUpload } from "../../components/files/FileUpload"; import { SearchTagDropdown } from "../../components/tags/SearchTagDropdown"; +import { Card } from "../../models/Card"; interface ViewCardOptionsMenu { viewingCard: Card; @@ -55,7 +56,6 @@ export function ViewCardOptionsMenu({ }; let response = await saveExistingCard(editedCard); setViewCard(editedCard); - fetchCard(id!); } return ( diff --git a/zettelkasten-front/src/components/tags/SearchTagDropdown.tsx b/zettelkasten-front/src/components/tags/SearchTagDropdown.tsx index 98b4a3f..47a83a5 100644 --- a/zettelkasten-front/src/components/tags/SearchTagDropdown.tsx +++ b/zettelkasten-front/src/components/tags/SearchTagDropdown.tsx @@ -1,4 +1,5 @@ import React, { useState, ChangeEvent } from "react"; +import { Tag } from "../../models/Tags"; interface SearchTagDropdownProps { tags: Tag[];