dsehnal před 3 roky
rodič
revize
d5d08542ed
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/mol-plugin-ui/index.ts

+ 1 - 1
src/mol-plugin-ui/index.ts

@@ -15,7 +15,7 @@ export async function createPluginUI(target: HTMLElement, spec?: PluginUISpec, o
     const ctx = new PluginUIContext(spec || DefaultPluginUISpec());
     await ctx.init();
     if (options?.onBeforeUIRender) {
-        await options?.onBeforeUIRender(ctx);
+        await options.onBeforeUIRender(ctx);
     }
     ReactDOM.render(React.createElement(Plugin, { plugin: ctx }), target);
     return ctx;