fix: suppress No grammar found for language: "none"
messages while building
This commit is contained in:
parent
712887d86e
commit
d32e6826b5
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ const customPortableTextComponents: PortableTextComponents = {
|
||||||
const language = value.language || "none";
|
const language = value.language || "none";
|
||||||
const grammar = Prism.languages[language];
|
const grammar = Prism.languages[language];
|
||||||
|
|
||||||
if (!grammar) {
|
if (language != "none" && !grammar) {
|
||||||
console.error(`No grammar found for language: "${language}"`);
|
console.error(`No grammar found for language: "${language}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue