Skip to content

Commit cb145da

Browse files
authored
fix(app/metrics): irrevelant warnings for embed function (#1244)
1 parent e80a5dc commit cb145da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/app/metrics/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf,
143143
const warnings = []
144144
if ((!Object.keys(Plugins).filter(key => q[key]).length) && (!parts.length))
145145
warnings.push({warning: {message: "No plugin were selected"}})
146-
const ineffective = Object.keys(q).filter(key => (key.includes(".")) && (key.split(".").at(0) !== "base") && (key.split(".").at(0) in Plugins)).filter(key => !q[key.split(".").at(0)])
146+
const ineffective = Object.keys(q).filter(key => (key.includes(".")) && (key.split(".").at(0) !== "base") && (!(key in imports.metadata.plugins.base.inputs)) && (key.split(".").at(0) in Plugins)).filter(key => !q[key.split(".").at(0)])
147147
warnings.push(...ineffective.map(key => ({warning: {message: `"${key}" has no effect because "${key.split(".").at(0)}: true" is not set`}})))
148148
//Compute rendering
149149
const {rendered} = await metrics({login, q}, {...arguments[1], convert: ["svg", "png", "jpeg"].includes(q["config.output"]) ? q["config.output"] : null, warnings}, arguments[2])

0 commit comments

Comments
 (0)