From 917651f6ee5268923d5f2b646c291298e44f2b1e Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Thu, 8 Oct 2020 16:42:53 -0400 Subject: [PATCH] publish: fix 'notebook index' link --- pkg/interface/src/views/apps/publish/components/Note.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/interface/src/views/apps/publish/components/Note.tsx b/pkg/interface/src/views/apps/publish/components/Note.tsx index aa4b9525c..1215d31b2 100644 --- a/pkg/interface/src/views/apps/publish/components/Note.tsx +++ b/pkg/interface/src/views/apps/publish/components/Note.tsx @@ -31,14 +31,12 @@ interface NoteProps { export function Note(props: NoteProps & RouteComponentProps) { const [deleting, setDeleting] = useState(false); - const { notebook, note, contacts, ship, book, noteId, api, baseUrl } = props; + const { notebook, note, contacts, ship, book, noteId, api, rootUrl } = props; useEffect(() => { api.publish.readNote(ship.slice(1), book, noteId); api.publish.fetchNote(ship, book, noteId); }, [ship, book, noteId]); - const rootUrl = props.baseUrl || '/~404'; - const deletePost = async () => { setDeleting(true); await api.publish.delNote(ship.slice(1), book, noteId);