From 9afdcaa2d8afe2a891da5b1774d995f1cf24b729 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Wed, 11 Dec 2019 16:18:46 +0530 Subject: [PATCH] Return static file's relative_path not http_url (#555) So that the user doesn't have to manually remove `http://localhost:4000/` from the value returned by the image-picker modal --- src/components/FilePreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FilePreview.js b/src/components/FilePreview.js index 91b313dd3..e9fc89ae0 100644 --- a/src/components/FilePreview.js +++ b/src/components/FilePreview.js @@ -45,7 +45,7 @@ export default class FilePreview extends Component { ); const nodeLink = onClick ? ( - {node} + onClick(file.relative_path)}>{node} ) : ( {node}