Skip to content

Commit

Permalink
[SSE mobile] Fix description for custom functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Apr 11, 2024
1 parent 45b6aa6 commit 30b446f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ const CellEditor = inject("storeFunctions")(observer(props => {

switch (type) {
case Asc.c_oAscPopUpSelectorType.Func:
descr = functions && functions[origName] ? functions[origName].descr : item.asc_getDescription() || '';
if (functions && functions[origName] && functions[origName].descr)
descr = functions[origName].descr;
else {
var custom = api.asc_getCustomFunctionInfo(origName);
descr = custom ? custom.asc_getDescription() || '' : '';
}
break;
case Asc.c_oAscPopUpSelectorType.TableThisRow:
descr = t('View.Add.textThisRowHint');
Expand Down

0 comments on commit 30b446f

Please sign in to comment.