From 72219ab52d50a92420f45ed055d2c7ce39dbb40c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 25 May 2017 12:48:42 +0300 Subject: [PATCH] [SSE mobile] Bug with loading functions (when no description for function in json file). --- .../mobile/app/controller/add/AddFunction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js index 97dccd5a6..eb584ee89 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js @@ -135,8 +135,8 @@ define([ type: _name, group: groupname, caption: func.asc_getLocaleName(), - args: jsonDesc[_name].a || '', - descr: jsonDesc[_name].d || '' + args: (jsonDesc && jsonDesc[_name]) ? jsonDesc[_name].a : '', + descr: (jsonDesc && jsonDesc[_name]) ? jsonDesc[_name].d : '' }; } }