Skip to content

Commit

Permalink
Fix "files is not defined" error in S3 object picker
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Sep 30, 2024
1 parent 3f31c1a commit b608356
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const S3ObjectPicker = ({
case ChonkyActions.ChangeSelection.id:
if (
action.payload.selection.size == 0 &&
files.find(({ id }) => selectedFile == id)
files?.find(({ id }) => selectedFile == id)
) {
fileBrowserRef.current.setFileSelection(new Set([selectedFile]));
return;
Expand Down

0 comments on commit b608356

Please sign in to comment.