The admin orders page was trying to access .front.length and .back.length without safely checking if they exist, causing 'Cannot read properties of undefined' error. Now uses optional chaining and try-catch to handle parsing errors gracefully.
The admin orders page was trying to access .front.length and .back.length without safely checking if they exist, causing 'Cannot read properties of undefined' error. Now uses optional chaining and try-catch to handle parsing errors gracefully.