We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 015bb9f commit 0b18880Copy full SHA for 0b18880
packages/utils/src/getTemplate.ts
@@ -20,9 +20,9 @@ export default function getTemplate<
20
}
21
// Allow templates to be customized per-field by using string keys from the registry
22
if (
23
- Object.prototype.hasOwnProperty.call(uiOptions, name) &&
+ Object.hasOwn(uiOptions, name)
24
typeof uiOptions[name] === 'string' &&
25
- Object.prototype.hasOwnProperty.call(templates, uiOptions[name] as string)
+ Object.hasOwn(templates, uiOptions[name] as string)
26
) {
27
const key = uiOptions[name];
28
// Evaluating templates[key] results in TS2590: Expression produces a union type that is too complex to represent
0 commit comments