diff --git a/apps/nextra/components/diagrams/use-draw.ts b/apps/nextra/components/diagrams/use-draw.ts index 0fd6ba352..d48c7cd63 100644 --- a/apps/nextra/components/diagrams/use-draw.ts +++ b/apps/nextra/components/diagrams/use-draw.ts @@ -6,7 +6,7 @@ export function useDraw(paths = {}, name = "") { defaultLocale: string; }; - if (!Object.hasOwn(paths, defaultLocale)) { + if (!Object.prototype.hasOwnProperty.call(paths, defaultLocale)) { throw new Error( `Please provide '${defaultLocale}' locale inside '${paths}'.`, );