diff --git a/packages/builder/src/stores/builder/history.js b/packages/builder/src/stores/builder/history.js index 62a8ed2f97..50d68bd543 100644 --- a/packages/builder/src/stores/builder/history.js +++ b/packages/builder/src/stores/builder/history.js @@ -16,8 +16,8 @@ export const initialState = { export const createHistoryStore = ({ getDoc, selectDoc, - beforeAction, - afterAction, + beforeAction = () => {}, + afterAction = () => {}, }) => { // Use a derived store to check if we are able to undo or redo any operations const store = writable(initialState)