From 63decf68eb6d335264f8168614690976a1c54226 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Wed, 6 Oct 2021 15:27:26 -0500 Subject: [PATCH] docket: handling initial state --- pkg/grid/src/state/docket.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/grid/src/state/docket.ts b/pkg/grid/src/state/docket.ts index 8c97f56d9..05c92f9ac 100644 --- a/pkg/grid/src/state/docket.ts +++ b/pkg/grid/src/state/docket.ts @@ -220,6 +220,11 @@ api.subscribe({ const treaty = normalizeDocket(data.add, desk); draft.treaties[`${ship}/${desk}`] = treaty; } + + if ('ini' in data) { + const treaties = normalizeDockets(data.ini); + draft.treaties = { ...draft.treaties, treaties }; + } }); } });