An Error Occurred!

Error in Pipeline: Booking Error Details:

TypeError: Cannot call method "substr" of undefined (int_book_appointment/cartridge/models/handleBookingData.js#316)