Web:Files:HOCs: fix create operation with hotkeys

This commit is contained in:
TimofeyBoyko 2022-07-11 16:36:46 +03:00
parent 91ca312871
commit a0651ecca4

View File

@ -66,10 +66,11 @@ const withHotkeys = (Component) => {
isFavoritesFolder || isRecentFolder || isTrashFolder;
const onCreate = (extension) => {
if (folderWithNoAction) return;
const event = new Event(Events.CREATE);
const payload = {
extension: format,
extension: extension,
id: -1,
};