Skip to content

Commit

Permalink
Tweak variable naming to reduce confusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jun 27, 2024
1 parent af14d94 commit 06dcb16
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,13 +542,13 @@
// it seems it is possible for us to have a serialized state with keys
// that do not correspond to any widgets. We need to sanitize the state
// before restoring it.
const sanitizedQuestions = {};
const sanitizedQuestion = {};
for (const key of widgetIds) {
if (answerState.question[key]) {
sanitizedQuestions[key] = answerState.question[key];
sanitizedQuestion[key] = answerState.question[key];
}
}
answerState.question = sanitizedQuestions;
answerState.question = sanitizedQuestion;
this.itemRenderer.restoreSerializedState(answerState);
widgetIds.forEach(id => {
if (sorterWidgetRegex.test(id)) {
Expand Down

0 comments on commit 06dcb16

Please sign in to comment.