RosePlugs: fix all rows showing the last discovered plugin's name
This commit is contained in:
parent
76e51cd11e
commit
9595259886
1 changed files with 5 additions and 5 deletions
|
|
@ -20,14 +20,14 @@ function buildRows(): SectionRow[] {
|
|||
},
|
||||
];
|
||||
|
||||
for (const plugin of discoverRosiesPlugins()) {
|
||||
if (!plugin.settingsComponent) continue;
|
||||
rows.push({
|
||||
const discovered = discoverRosiesPlugins().filter((p) => p.settingsComponent);
|
||||
rows.push(
|
||||
...discovered.map((plugin) => ({
|
||||
key: `ROSES_PLUGS_${plugin.id}`,
|
||||
title: () => plugin.name,
|
||||
page: plugin.settingsComponent as any,
|
||||
});
|
||||
}
|
||||
}))
|
||||
);
|
||||
|
||||
return rows;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue