pl-fe: fix main compose gets filled with irrelevant content
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
parent
746e5fc395
commit
3db2a13ad9
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue