dsehnal 3 năm trước cách đây
mục cha
commit
d5d08542ed
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;