Skip to content

Commit c8b8b77

Browse files
- Responded to reviewer feedback
1 parent f4e0605 commit c8b8b77

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/core/src/components/fields/SchemaField.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,11 @@ function SchemaFieldRender<T, F>(props: FieldProps<T, F>) {
256256
classNames.push("field-error has-error has-danger");
257257
}
258258
if (uiSchema?.classNames) {
259-
console.warn(
260-
"WARNING: 'uiSchema.classNames' is deprecated and will be removed in the next major release; Use 'ui:classNames' instead."
261-
);
259+
if (process.env.NODE_ENV !== "production") {
260+
console.warn(
261+
"WARNING: 'uiSchema.classNames' is deprecated and will be removed in the next major release; Use 'ui:classNames' instead."
262+
);
263+
}
262264
classNames.push(uiSchema.classNames);
263265
}
264266
if (uiOptions.classNames) {

0 commit comments

Comments
 (0)