Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
znamenskii-ilia committed Jul 16, 2024
1 parent 6eb7fa1 commit d2a5392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/src/sagas/WidgetDeletionSagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export function handleDeleteRedundantZones(
for (const parentId of parentIds) {
const zone = updatedWidgets[parentId];

if (!isZoneWidget(zone) || !zone.parentId) continue;
if (!zone || !isZoneWidget(zone) || !zone.parentId) continue;

const parentSection = updatedWidgets[zone.parentId];

Expand Down

0 comments on commit d2a5392

Please sign in to comment.