BetterSettings: remove duplicate "Other options" menu entries (#3727)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
e9fd7db6e6
commit
ebe2b2769c
1 changed files with 2 additions and 1 deletions
|
|
@ -171,10 +171,11 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
wrapMap(toWrap: any[]) {
|
||||
const otherOptions = getIntlMessage("OTHER_OPTIONS");
|
||||
// @ts-expect-error
|
||||
toWrap.map = function (render: (item: SettingsEntry) => ReactElement<any>) {
|
||||
return this
|
||||
.filter(a => a.items.length > 0)
|
||||
.filter(a => a.items.length > 0 && a.label !== otherOptions)
|
||||
.map(({ label, items }) => {
|
||||
const children = items.map(render);
|
||||
if (label) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue