frontend-rw #1

Merged
marcin merged 347 commits from frontend-rw into develop 2024-12-05 15:32:18 -08:00
Showing only changes of commit 3db2a13ad9 - Show all commits

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