Remove version from component name when considering used plugins in screen docs

This commit is contained in:
Andrew Kingston 2022-09-02 19:58:54 +01:00
parent 1f1f482f9d
commit 5100ecb48d
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ exports.save = async ctx => {
.filter(plugin => { .filter(plugin => {
return ( return (
plugin.schema.type === "component" && plugin.schema.type === "component" &&
pluginNames.includes(`plugin/${plugin.name}/${plugin.version}`) pluginNames.includes(`plugin/${plugin.name}`)
) )
}) })
@ -71,6 +71,7 @@ exports.save = async ctx => {
name: plugin.name, name: plugin.name,
version: plugin.version, version: plugin.version,
jsUrl: plugin.jsUrl, jsUrl: plugin.jsUrl,
hash: plugin.hash,
}) })
} }
}) })