Skip to content
Snippets Groups Projects
Commit 964aec10 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

set new file link

parent 550aa63b
Branches master
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ class CorrectSolutionForm extends Component { ...@@ -30,7 +30,7 @@ class CorrectSolutionForm extends Component {
const relevantDocument = relevantDocuments.slice(-1)[0]; const relevantDocument = relevantDocuments.slice(-1)[0];
let fileLink; let fileLink;
if (relevantDocument && relevantDocument.file) { if (relevantDocument && relevantDocument.file) {
fileLink = `/media${relevantDocument.file.split('media')[1]}`; fileLink = `${relevantDocument.file}`;
} else { } else {
fileLink = null; fileLink = null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment