make it non-optional

pull/94300/head
Esteban Beltran 10 months ago
parent fc5361c1f8
commit 13f58defcb
No known key found for this signature in database
  1. 2
      packages/grafana-ui/src/components/AutoSaveField/AutoSaveField.tsx

@ -18,7 +18,7 @@ export interface Props<T = string> extends Omit<FieldProps, 'children'> {
saveErrorMessage?: string;
/** Input that will save its value on change */
children: (onChange: (newValue: T) => void) => React.ReactElement;
mandatory?: boolean;
mandatory: boolean;
}
export function AutoSaveField<T = string>(props: Props<T>) {
const {

Loading…
Cancel
Save