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:
parent
f8ea4a5021
commit
4ac80aafab
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue