Pressing command-z deletes the files even if there is no restore location
I have copied some photos from sd card to my mac. Then I deleted the files from sd card and removed it to take more photos. While my friend was taking pictures somehow accidently I pressed the command-z. Then whole folder just disappeard. I didn't even get any notification that telling me "cannot find restore location" or " files will be deleted". Folder just disappeared in 1 second. They are not in the trash also.
MacBook Pro 13″, macOS 11.6