docket: handling initial state

This commit is contained in:
Hunter Miller 2021-10-06 15:27:26 -05:00
parent 908d27a916
commit 63decf68eb

View File

@ -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 };
}
});
}
});