Changed check category

This commit is contained in:
zeldaroot 2020-05-05 22:04:48 +03:00
parent 2265d8fe05
commit 7da806ced4
7 changed files with 7 additions and 7 deletions

View File

@ -377,7 +377,7 @@
<div class="row items">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(4, category.movies.length % 4);
category.movies.forEach(function (movie) { %>

View File

@ -381,7 +381,7 @@
<div class="row items">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(4, category.movies.length % 4);
category.movies.forEach(function (movie) { %>

View File

@ -43,7 +43,7 @@
<div class="row items">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.forEach(function (movie) { if (movie.hide) {
return;
} %>

View File

@ -390,7 +390,7 @@
<div class="row items">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(4, category.movies.length % 4);
category.movies.forEach(function (movie) { %>

View File

@ -382,7 +382,7 @@
<div class="row items">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(4, category.movies.length % 4);
category.movies.forEach(function (movie) { %>

View File

@ -357,7 +357,7 @@
<div class="row items">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(4, category.movies.length % 4);
category.movies.forEach(function (movie) { %>

View File

@ -377,7 +377,7 @@
<div class="row items">
<% if (category.movies.length) {
<% if (typeof category === 'object' && category.movies && category.movies.length) {
category.movies.splice(4, category.movies.length % 4);
category.movies.forEach(function (movie) { %>