From a46c83487430f315855d1abcd2d4f8f7b5b18c0a Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 29 Jun 2020 16:12:36 +0100 Subject: [PATCH] Fixed data functions. --- src/components/FieldFunction.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FieldFunction.jsx b/src/components/FieldFunction.jsx index 35a1775..0174f93 100644 --- a/src/components/FieldFunction.jsx +++ b/src/components/FieldFunction.jsx @@ -278,8 +278,8 @@ export default class FieldFunction extends React.Component { this.props.onChange(this.props.fieldName, expression); } - makeDataFunction = (functionType) => { - functionType = functionType || this.getFieldFunctionType(this.props.fieldSpec); + makeDataFunction = () => { + const functionType = this.getFieldFunctionType(this.props.fieldSpec); const stopValue = functionType === 'categorical' ? '' : 0; const {value} = this.props; let dataFunc;