Changed check category

This commit is contained in:
zeldaroot 2020-05-05 22:03:00 +03:00
parent 81b18a0720
commit 057dd8cd3b
7 changed files with 7 additions and 7 deletions

View File

@ -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 %>">

View File

@ -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 %>">

View File

@ -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) { %>

View File

@ -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 %>">

View File

@ -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 %>">

View File

@ -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 %>">

View File

@ -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 %>">