isobit-ui 0.2.35 → 0.2.37

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.
Files changed (2) hide show
  1. package/dist/index.js +19 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.34
2
+ * isobit-ui v0.2.36
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -2673,13 +2673,15 @@ var script$d = {
2673
2673
  if (r.data && r.data.error) {
2674
2674
  MsgBox(r.data.error);
2675
2675
  } else {
2676
- var re = r.data.data ? r.data.data : r.data;
2676
+ var re = r.data;
2677
2677
 
2678
2678
  if (me.gql) {
2679
2679
  //console.log(r.data);
2680
2680
  //console.log(Object.keys(me.gql)[0]);
2681
2681
  re = r.data.data[Object.keys(me.gql)[0]];
2682
- } else me.data = re;
2682
+ }
2683
+
2684
+ me.data = re.data || re;
2683
2685
 
2684
2686
  if (re && re.hasOwnProperty('size') && pagination) {
2685
2687
  me.pages = Math.ceil(re.size / pagination);
@@ -3971,6 +3973,8 @@ var script$7 = {
3971
3973
  },
3972
3974
  load: function load(p, nou, clearQueue) {
3973
3975
  try {
3976
+ var ittt;
3977
+
3974
3978
  var _this2 = this;
3975
3979
 
3976
3980
  //console.log('================load');
@@ -3993,9 +3997,18 @@ var script$7 = {
3993
3997
  key = _ref2[0];
3994
3998
 
3995
3999
  if (key) {
3996
- me.data2 = me.data2.concat(storedList.filter(function (item) {
3997
- return item[key].startsWith(p[key]);
3998
- })); //console.log("data filtrada");
4000
+ try {
4001
+ me.data2 = me.data2.concat(storedList.filter(function (item) {
4002
+ ittt = item; //item[key]&&
4003
+
4004
+ return item[key].startsWith(p[key]);
4005
+ }));
4006
+ } catch (e) {
4007
+ console.log('Error trying to filter ', ittt);
4008
+ console.log(ittt);
4009
+ console.log(storedList);
4010
+ } //console.log("data filtrada");
4011
+
3999
4012
  } else {
4000
4013
  me.data2 = me.data2.concat(storedList); //console.log("data no filtrada");
4001
4014
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [