Skip to content

Commit

Permalink
fix: update MediaSettingsModal to handle nested images
Browse files Browse the repository at this point in the history
  • Loading branch information
kwajiehao committed Apr 15, 2021
1 parent 1abf04e commit 05d9e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/media/MediaSettingsModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class MediaSettingsModal extends Component {
if (newFileName === fileName) {
return;
}
await axios.post(`${process.env.REACT_APP_BACKEND_URL}/sites/${siteName}/${type === 'image' ? 'images' : 'documents'}/${fileName}/rename/${newFileName}`, params, {
await axios.post(`${process.env.REACT_APP_BACKEND_URL}/sites/${siteName}/${type === 'image' ? 'images' : 'documents'}/${generateImageorFilePath(customPath, fileName)}/rename/${generateImageorFilePath(customPath, newFileName)}`, params, {
withCredentials: true,
});
}
Expand Down

0 comments on commit 05d9e66

Please sign in to comment.