Skip to content

Commit

Permalink
Fix an issue on web where repositories plugin options were merged wit…
Browse files Browse the repository at this point in the history
…h base one
  • Loading branch information
lowlighter committed Aug 19, 2021
1 parent 5d43b98 commit c9a1ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app/web/statics/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
const enabled = Object.entries(this.plugins.enabled).filter(([key, value]) => (value) && (key !== "base")).map(([key, value]) => key)
const filter = new RegExp(`^(?:${enabled.join("|")})[.]`)
//Search related options
const entries = Object.entries(this.plugins.options.descriptions).filter(([key, value]) => filter.test(key))
const entries = Object.entries(this.plugins.options.descriptions).filter(([key, value]) => (filter.test(key)) && (!(key in metadata.base.web)))
entries.push(...enabled.map(key => [key, this.plugins.descriptions[key]]))
entries.sort((a, b) => a[0].localeCompare(b[0]))
//Return object
Expand Down

0 comments on commit c9a1ef7

Please sign in to comment.