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:
parent
4262b23031
commit
222d72ae2f
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user