mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
doc opload poc
This commit is contained in:
@ -68,12 +68,12 @@ const DashboardPage: NextPageWithLayout = () => {
|
||||
const response: any = await fetch("/api/documents", {
|
||||
method: "POST",
|
||||
body,
|
||||
}).then((response: any) => {
|
||||
Router.push(
|
||||
`${NEXT_PUBLIC_WEBAPP_URL}/documents/${
|
||||
response.json().creadtedDocumentId
|
||||
}`
|
||||
);
|
||||
}).then((response: Response) => {
|
||||
response.json().then((createdDocumentIdFromBody) => {
|
||||
Router.push(
|
||||
`${NEXT_PUBLIC_WEBAPP_URL}/documents/${createdDocumentIdFromBody}`
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user