[SSE mobile] Corrected add function

This commit is contained in:
SergeyEzhin 2021-05-18 16:06:24 +03:00
parent 537f007461
commit 75fdffe6a9

View file

@ -68,7 +68,8 @@ const AddFunction = props => {
{caption: 'MAX', type: 'MAX'}, {caption: 'MAX', type: 'MAX'},
{caption: 'COUNT', type: 'COUNT'} {caption: 'COUNT', type: 'COUNT'}
]; ];
if (functions) {
if (Object.keys(functions).length) {
quickFunctions.forEach((quickFunction) => { quickFunctions.forEach((quickFunction) => {
const f = functions[quickFunction.type]; const f = functions[quickFunction.type];
quickFunction.caption = f.caption; quickFunction.caption = f.caption;