Web:Files:HOCs: fix create operation with hotkeys
This commit is contained in:
parent
91ca312871
commit
a0651ecca4
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user