diff --git a/apps/frontend/src/components/editor-drawer.jsx b/apps/frontend/src/components/editor-drawer.jsx index 8a462ff2e..2f22d2957 100644 --- a/apps/frontend/src/components/editor-drawer.jsx +++ b/apps/frontend/src/components/editor-drawer.jsx @@ -30,6 +30,7 @@ import { DrawerHeader, DrawerOverlay, DrawerContent, + useToast, } from "@chakra-ui/react"; import { Field, Form, Formik } from "formik"; import slugify from "slugify"; @@ -64,6 +65,8 @@ const EditorDrawer = ({ const [authorName, setAuthorName] = useState(""); + const toast = useToast(); + useEffect(() => { if (post) { const { tags } = post.attributes;