1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00

fix file id access for image edit

This commit is contained in:
Sonja Happ 2020-03-13 17:23:54 +01:00
parent f8ea4a5021
commit 4ac80aafab

View file

@ -82,7 +82,7 @@ class EditImageWidgetControl extends React.Component {
<option disabled value style={{ display: 'none' }}>No images found, please upload one first.</option>
) : (
this.props.files.reduce((entries, file, index) => {
entries.push(<option key={++index} value={file._id}>{file.name}</option>);
entries.push(<option key={++index} value={file.id}>{file.name}</option>);
return entries;
}, [
<option key={0} value=''>Please select one image</option>