@mjhls/mjh-framework 1.0.466 → 1.0.468

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.466
1
+ # mjh-framework v. 1.0.468
2
2
 
3
3
  > Foundation Framework
4
4
 
@@ -297,7 +297,7 @@ var MasterDeck = function (_React$Component) {
297
297
  data && data.length > 0 ? data.map(function (row, index) {
298
298
  var pageNumber = row.pageNumber || _this.state.page;
299
299
  // Returning view for articles
300
- if (row._type === 'article') {
300
+ if (!row._type || row._type === 'article') {
301
301
  return React__default.createElement(
302
302
  React__default.Fragment,
303
303
  { key: index },
@@ -123,9 +123,6 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
123
123
  }
124
124
 
125
125
  // pageNumber = parseInt(pageNumber)
126
- console.log('itemIndex:', itemIndex);
127
- console.log('itemsPerPage:', itemsPerPage);
128
-
129
126
  var index$1 = Number(itemIndex);
130
127
  var perPage = Number(itemsPerPage);
131
128
 
@@ -468,8 +465,6 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
468
465
  key: article._id ? article._id : index,
469
466
  onChange: function onChange(isVisible) {
470
467
  // Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
471
- console.log('article.articleCount:', article.articleCount, article);
472
-
473
468
  isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
474
469
  } },
475
470
  React__default.createElement(
@@ -291,7 +291,7 @@ var MasterDeck = function (_React$Component) {
291
291
  data && data.length > 0 ? data.map(function (row, index) {
292
292
  var pageNumber = row.pageNumber || _this.state.page;
293
293
  // Returning view for articles
294
- if (row._type === 'article') {
294
+ if (!row._type || row._type === 'article') {
295
295
  return React__default.createElement(
296
296
  React__default.Fragment,
297
297
  { key: index },
@@ -117,9 +117,6 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
117
117
  }
118
118
 
119
119
  // pageNumber = parseInt(pageNumber)
120
- console.log('itemIndex:', itemIndex);
121
- console.log('itemsPerPage:', itemsPerPage);
122
-
123
120
  var index = Number(itemIndex);
124
121
  var perPage = Number(itemsPerPage);
125
122
 
@@ -462,8 +459,6 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
462
459
  key: article._id ? article._id : index,
463
460
  onChange: function onChange(isVisible) {
464
461
  // Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of artilce only.
465
- console.log('article.articleCount:', article.articleCount, article);
466
-
467
462
  isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, article.articleCount ? article.articleCount : index);
468
463
  } },
469
464
  React__default.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.466",
3
+ "version": "1.0.468",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",