Merge pull request #3260 from jitendra-webkul/1.0

Issue fixed if booking product is null
This commit is contained in:
Jitendra Singh 2020-06-16 21:30:13 +05:30 committed by GitHub
commit e156fa95fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -157,14 +157,10 @@
},
created: function() {
if (this.booking.available_from) {
this.booking.available_from = "{{ $bookingProduct->available_from->format('Y-m-d H:i:s') }}";
}
this.booking.available_from = "{{ $bookingProduct && $bookingProduct->available_from ? $bookingProduct->available_from->format('Y-m-d H:i:s') : '' }}";
if (this.booking.available_to) {
this.booking.available_to = "{{ $bookingProduct->available_to->format('Y-m-d H:i:s') }}";
}
this.booking.available_to = "{{ $bookingProduct && $bookingProduct->available_to ? $bookingProduct->available_to->format('Y-m-d H:i:s') : '' }}";
}
});
</script>