fix: Fixed an issue where deleting a file from the preview modal would not correctly navigate to next item or dismiss the modal
This commit is contained in:
@@ -51,7 +51,7 @@ const FilePreviewModal = observer(({ application, viewControllerManager }: Props
|
||||
|
||||
event.preventDefault()
|
||||
|
||||
const currentFileIndex = otherFiles.findIndex((fileFromArray) => fileFromArray.uuid === currentFile.uuid)
|
||||
const currentFileIndex = otherFiles.findIndex((file) => file.uuid === currentFile.uuid)
|
||||
|
||||
switch (event.key) {
|
||||
case KeyboardKey.Left: {
|
||||
|
||||
Reference in New Issue
Block a user