Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getKernel() {
if (
this.props.input.properties.inputSchemaFile !== Models.defaultInput.properties.inputSchemaFile &&
this.props.input.properties.inputSchemaFile !== '{}'
) {
const version = this.props.kernelVersion + 1;
this.props.onUpdateKernelVersion(version);
this.props.onGetKernel(
Helpers.convertFlowToQueryMetadata(this.props.flow, this.props.query),
version,
QueryActions.updateErrorMessage
);
}
}
refreshKernel(kernelId) {
const version = this.props.kernelVersion + 1;
this.props.onUpdateKernelVersion(version);
this.props.onRefreshKernel(
Helpers.convertFlowToQueryMetadata(this.props.flow, this.props.query),
kernelId,
version,
QueryActions.updateErrorMessage
);
}