Support duplicate attachments in lightbox
This commit is contained in:
parent
b885ced90d
commit
1a2976dae4
7 changed files with 35 additions and 45 deletions
|
@ -27,11 +27,7 @@ export const getSelectedIndex = createSelector(
|
|||
return 0;
|
||||
}
|
||||
|
||||
const index = state.media.findIndex(
|
||||
item => item.attachment.path === state.selectedAttachmentPath
|
||||
);
|
||||
|
||||
return index > 0 ? index : 0;
|
||||
return state.selectedIndex ?? 0;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue