Skip to content

Commit fb45bcf

Browse files
committed
fix(hub-ui): provide connectionMeta in story mock rpc
1 parent b6037ce commit fb45bcf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/hub-ui/src/client/stories/mock-context.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function createMockRpc(
5959

6060
const rpc = {
6161
events,
62+
// Server-advertised connection metadata. Stories have no live server, so
63+
// advertise the `static` backend with no `configs` — the context reads
64+
// `connectionMeta.configs?.ui?...` optionally, so an empty meta is enough.
65+
connectionMeta: { backend: 'static' as const },
6266
get isTrusted() {
6367
return trusted
6468
},

0 commit comments

Comments
 (0)