Skip to content

Commit f9ba7b8

Browse files
author
Ravisanker E
committed
minor:refactor
1 parent 635b6cf commit f9ba7b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blocks/form/components/review/review.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ function replaceInputs(element, model) {
5959
}
6060

6161
function render(element, fd, model) {
62-
element.innerHTML = '';
6362
if (!model) return;
6463

6564
const { form } = model;
6665
const { properties } = fd;
6766

6867
if (!properties?.panelNames) return;
6968

69+
element.innerHTML = '';
70+
7071
const panelModels = [];
7172
form.visit((field) => {
7273
if (properties.panelNames.includes(field.name)) {

0 commit comments

Comments
 (0)