Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

call onNewPage with no arguments

Roman Pominov87e157ed683a
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx
index bc6adde625..917a24f8aa 100644
--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx
@@ -101,7 +101,11 @@ const PagesPanel = ({
suffix={
<>
{onNewPage && (
- <IconButton size="2" onClick={onNewPage} aria-label="New Page">
+ <IconButton
+ size="2"
+ onClick={() => onNewPage()}
+ aria-label="New Page"
+ >
<NewPageIcon />
</IconButton>
)}