test(plugins): narrow the shared configuration slot owner

This commit is contained in:
Dudu-0223 committed 2026-09-19 22:38:53 +08:00
1 parent 73801ce10b
commit 6196d1b52d
1 file changed
+2 -2
@@ -115,8 +115,8 @@ function renderTab(state: Partial<PluginManagerState> = {}, config: Partial<Conf
...actions,
usePluginManager: bindSnapshotSelector(store),
useConfigLedger: bindSnapshotSelector(ledger),
renderSlot: (name, owner: PluginConfigViewProps, opts) =>
bodies[`${name}:${opts?.only ?? opts?.entryKey ?? ''}`]?.(owner.view) ?? null,
renderSlot: (name, owner, opts) =>
bodies[`${name}:${opts?.only ?? opts?.entryKey ?? ''}`]?.((owner as PluginConfigViewProps).view) ?? null,
}
const { rerender } = render(<PluginManagerPage {...props} />)
return {