Skip to content

Commit cad2133

Browse files
committed
Drop undo from supports and have it be on by default
1 parent d7637c9 commit cad2133

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/core-data/src/entities.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ async function loadPostTypeEntities() {
375375
supports: {
376376
undo: true,
377377
crdtPersistence: true,
378-
undo: true,
379378
},
380379
};
381380
}

packages/sync/src/manager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ export function createSyncManager(): SyncManager {
9999
void updateEntityRecord( objectType, objectId );
100100
};
101101

102-
if ( syncConfig.supports?.undo ) {
103-
undoManager.addToScope( recordMap );
104-
}
102+
undoManager.addToScope( recordMap );
105103

106104
const entityState: EntityState = {
107105
handlers,

0 commit comments

Comments
 (0)