diff --git a/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx b/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx index 46220d98d..5c6a4a525 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx @@ -12,8 +12,8 @@ class _FunctionGroups extends Component { super(props); } componentDidMount() { - Common.Notifications.on('engineCreated', api => { - this.api = api; + Common.Notifications.on('document:ready', () => { + this.api = Common.EditorApi.get(); this.init(); }); }