From e3f64d39db4da01e0ddd01620ab608a4f88abffd Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Mon, 21 Jun 2021 15:29:34 +0300 Subject: [PATCH] [SSE mobile] Fix bug 50785 --- .../mobile/src/controller/add/AddFunction.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }); }