Web:Client:Removed the extra separator at the beginning of the list in the file context menu in the info panel in the Trash.

This commit is contained in:
Vlada Gazizova 2023-10-31 14:11:57 +03:00
parent 4262b23031
commit 222d72ae2f

View File

@ -1392,7 +1392,17 @@ class ContextOptionsStore {
onLoad: () => this.onLoadPlugins(item),
});
}
return options;
const filteredOptions = this.removeSeparatorFirstInList(options);
return filteredOptions;
};
removeSeparatorFirstInList = (options) => {
const newOptions = options.filter(
(option, index) => !(index === 0 && option.key === "separator1")
);
return newOptions;
};
getGroupContextOptions = (t) => {