Changed check category
This commit is contained in:
parent
81b18a0720
commit
057dd8cd3b
|
@ -145,7 +145,7 @@
|
|||
</div>
|
||||
<div class="fullstory-content-slider">
|
||||
<div class="full-related" style="display: none;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>">
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
</div>
|
||||
<div class="fullstory-content-slider">
|
||||
<div class="full-related" style="display: none;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>">
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<div class="main-sliders">
|
||||
<div class="movie-slider" style="display: none;">
|
||||
|
||||
<% if (category.movies.length) { %>
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie) { %>
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@
|
|||
</div>
|
||||
<div class="fullstory-content-slider">
|
||||
<div class="full-related" style="display: none;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>">
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
</div>
|
||||
<div class="fullstory-content-slider">
|
||||
<div class="full-related" style="display: none;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>">
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
</div>
|
||||
<div class="fullstory-content-slider">
|
||||
<div class="full-related" style="display: none;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>">
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
</div>
|
||||
<div class="fullstory-content-slider">
|
||||
<div class="full-related" style="display: none;">
|
||||
<% if (category.movies.length) {
|
||||
<% if (typeof category === 'object' && category.movies && category.movies.length) {
|
||||
category.movies.forEach(function (movie) { %>
|
||||
<div class="item">
|
||||
<a href="<%- movie.url %>">
|
||||
|
|
Loading…
Reference in New Issue