From 53f0c3ce92962315c83a215a06e8ae7d16ec6a81 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 29 Jan 2025 11:19:28 +0100 Subject: [PATCH] Fix types --- packages/builder/src/stores/builder/history.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)