Skip to content

Commit 006b6eb

Browse files
authored
Merge pull request #2116 from visualize-admin/fix/sync-text-height
fix: Infinite loop when resizing text blocks
2 parents 976f0cf + e4a4e3a commit 006b6eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ You can also check the
1717
- Fixes
1818
- Color picker's HEX code input now stays up-to-date with the selected color
1919
- Markdown links now open in a new tab
20+
- Publishing of a dashboard with text blocks doesn't crash the application in
21+
some rare cases anymore
2022

2123
# [5.2.5] - 2025-02-18
2224

app/configurator/configurator-state/reducer.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1198,11 +1198,10 @@ const reducer_: Reducer<ConfiguratorState, ConfiguratorStateAction> = (
11981198
if (draft.state === "LAYOUTING" || draft.state === "PUBLISHED") {
11991199
if (!isEqual(draft.layout, action.value)) {
12001200
draft.layout = action.value;
1201+
ensureDashboardLayoutIsCorrect(draft);
12011202
}
12021203
}
12031204

1204-
ensureDashboardLayoutIsCorrect(draft);
1205-
12061205
return draft;
12071206

12081207
case "LAYOUT_ACTIVE_FIELD_CHANGED":

0 commit comments

Comments
 (0)