Changed check category
This commit is contained in:
parent
2265d8fe05
commit
7da806ced4
|
@ -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) { %>
|
||||
|
||||
|
|
|
@ -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) { %>
|
||||
|
||||
|
|
|
@ -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;
|
||||
} %>
|
||||
|
|
|
@ -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) { %>
|
||||
|
||||
|
|
|
@ -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) { %>
|
||||
|
||||
|
|
|
@ -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) { %>
|
||||
|
||||
|
|
|
@ -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) { %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue