Skip to content
Snippets Groups Projects
Commit 5baba69f authored by Jure's avatar Jure
Browse files

fix: use correct context

parent a01c998e
No related branches found
No related tags found
No related merge requests found
import React, { useContext } from 'react'
import styled, { keyframes, withTheme } from 'styled-components'
import { XpubContext } from 'xpub-with-context'
import { XpubContext } from '../../../xpub-with-context'
import Dropzone from 'react-dropzone'
import { Icon } from '@pubsweet/ui'
import { th } from '@pubsweet/ui-toolkit'
......
......@@ -25,7 +25,7 @@ const DocxToHTMLPromise = file => ({ data }) => {
const body = new FormData()
body.append('docx', file)
const url = `${config['pubsweet-client'].baseUrl}convertDocxToHTML`
const url = `${config['pubsweet-client'].baseUrl}/convertDocxToHTML`
return request(url, { method: 'POST', body }).then(response =>
Promise.resolve({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment