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