Skip to content

Commit 75e20cd

Browse files
fix: add guard rail to (#3740)
1 parent dab2bda commit 75e20cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/buckets/components/createBucketForm/BucketOverlayForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export default class BucketOverlayForm extends PureComponent<Props> {
8686
}
8787

8888
onAddSchemasInternal = (schemas, resetValidation) => {
89-
this.props.onAddNewMeasurementSchemas(schemas, resetValidation)
89+
if (this.props.onAddNewMeasurementSchemas) {
90+
this.props.onAddNewMeasurementSchemas(schemas, resetValidation)
91+
}
9092
this.setState({newMeasurementSchemas: schemas})
9193
}
9294

0 commit comments

Comments
 (0)