Skip to content

Commit

Permalink
[Mobile] Fix plugins loading
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Nov 6, 2024
1 parent 861270d commit 03666e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/common/mobile/lib/controller/Plugins.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PluginsController = inject('storeAppOptions')(observer(props => {
let modal, iframe;

useEffect(() => {
if (storeAppOptions.customization && !!storeAppOptions.customization.plugins) {
if (storeAppOptions.customization && storeAppOptions.customization.plugins!==false) {
const api = Common.EditorApi.get();

api.asc_registerCallback("asc_onPluginShow", showPluginModal);
Expand Down Expand Up @@ -246,9 +246,9 @@ const PluginsController = inject('storeAppOptions')(observer(props => {
refConfigPlugins.current.plugins = loaded;
mergePlugins();
});
if (configPlugins.config.options) {
if (refConfigPlugins.current.config.options) {
const api = Common.EditorApi.get();
api && api.setPluginsOptions(configPlugins.config.options);
api && api.setPluginsOptions(refConfigPlugins.current.config.options);
}
} else {
refConfigPlugins.current.plugins = false;
Expand Down

0 comments on commit 03666e2

Please sign in to comment.