mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-04 10:30:00 -06:00
fix error while loading responses #81
This commit is contained in:
@@ -44,7 +44,10 @@ export const getSubmission = (submissionSession, schema) => {
|
||||
if (typeof pageSubmission !== "undefined") {
|
||||
for (const [elementIdx, element] of page.elements.entries()) {
|
||||
if (element.type !== "submit") {
|
||||
if (element.name in pageSubmission.data?.submission) {
|
||||
if (
|
||||
"submission" in pageSubmission.data &&
|
||||
element.name in pageSubmission.data?.submission
|
||||
) {
|
||||
submissionPage.elements[elementIdx].value =
|
||||
pageSubmission.data.submission[element.name];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user