mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
fix get image index bug (#7139)
This commit is contained in:
@@ -233,7 +233,7 @@ class DirentListView extends React.Component {
|
||||
this.setState({
|
||||
isImagePopupOpen: true,
|
||||
imageItems: imageItems,
|
||||
imageIndex: items.indexOf(curItem)
|
||||
imageIndex: items.findIndex((item) => item.id === curItem.id),
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user