Fix: Safely parse designJson in admin order detail page
The order detail page was trying to access design.front.length and design.back.length without safely checking if they exist. Now wraps the parse in try-catch and uses optional chaining to handle errors gracefully.
This commit is contained in:
@@ -68,7 +68,8 @@
|
||||
"Bash(git commit -m 'Fix: Handle designJson as string in checkout API *)",
|
||||
"Bash(git commit -m 'Fix: Use personalised price in design approval cart add *)",
|
||||
"Bash(git commit -m 'Fix: Safely access designJson properties in admin orders page *)",
|
||||
"Bash(git commit -m 'Fix: Show personalised price on design review page *)"
|
||||
"Bash(git commit -m 'Fix: Show personalised price on design review page *)",
|
||||
"Bash(git commit -m 'Fix: Safely parse designJson in admin order detail page *)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user