Skip to content

Commit b671dba

Browse files
v2.21.1
fix: handle undefined placeholders condition
1 parent 79cdbc9 commit b671dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/OpenSign/src/constant/Utils.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3081,9 +3081,9 @@ export const updateDateWidgetsRes = (documentData, signerId, journey) => {
30813081
if (item?.signerObjId === signerId) {
30823082
return {
30833083
...item,
3084-
placeHolder: item.placeHolder.map((ph) => ({
3084+
placeHolder: item?.placeHolder?.map((ph) => ({
30853085
...ph,
3086-
pos: ph.pos.map((widget) => {
3086+
pos: ph?.pos?.map((widget) => {
30873087
// only for date widgets *and* missing response
30883088
if (widget.type === "date" && !widget.options.response) {
30893089
return {

0 commit comments

Comments
 (0)