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.

Fix selected breakpoint to delete (#718)

Musi481777864988
diff --git a/apps/designer/app/designer/features/breakpoints/breakpoints.tsx b/apps/designer/app/designer/features/breakpoints/breakpoints.tsx
index 26d9f72414..db5aca45db 100644
--- a/apps/designer/app/designer/features/breakpoints/breakpoints.tsx
+++ b/apps/designer/app/designer/features/breakpoints/breakpoints.tsx
@@ -127,9 +127,9 @@ export const Breakpoints = ({ publish }: BreakpointsProps) => {
sideOffset={4}
collisionPadding={4}
>
- {view === "confirmation" && (
+ {view === "confirmation" && breakpointToDelete && (
<ConfirmationDialog
- breakpoint={selectedBreakpoint}
+ breakpoint={breakpointToDelete}
onAbort={() => {
setBreakpointToDelete(undefined);
setView("editor");