pl-fe: fix main compose gets filled with irrelevant content

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk 2024-12-04 22:57:03 +01:00
parent 746e5fc395
commit 3db2a13ad9

View file

@ -306,7 +306,9 @@ const updateDefaultContentType = (compose: Compose, instance: Instance) => {
const updateCompose = (state: State, key: string, updater: (compose: Compose) => void) =>
create(state, draft => {
draft[key] = draft[key] || create(draft.default, () => {});
draft[key] = draft[key] || create(draft.default, (draft) => {
draft.idempotencyKey = crypto.randomUUID();
});
updater(draft[key]);
});
// state.update(key, state.get('default')!, updater);