_mercury 🇵🇸_
Reactiflux4y ago
21 replies
_mercury 🇵🇸

✅ – _mercury – 00-13 Aug 29

I have logged
group
as in the photo

I have this code
    groups.forEach((group) => {
      console.log(group);

      return Object.keys(group).forEach((key) => {
        if (!group[key]) {
          delete group[key];
        }
      });
    });

But
these 2 lines
do not work
      group.templates_count = parseInt(group.templates_count) || 0;
      group.attributes_count = parseInt(group.attributes_count) || 0;
why ?
Screen_Shot_2022-08-29_at_2.11.49_AM.png
Was this page helpful?