Mappable limits in data stores


Hello everyone !

I have a scenario using data stores where I set a mappable limit than can go from 0 to 2.
If the limit is 2, I want the “Search Records” module to return 2 records, etc.

It seems to work pretty well, except when the limit is set to 0, it returns record even though it’s not supposed to.

Any thoughts on that matter ? Or ideas on how to solve that ?

Any recommendations / advice will be very much appreciated.

Thank you for your help,
Camille

Welcome to the Make community!

That’s because by using the module, it is assumed that you’ll want at least one record.

A value of zero sometimes is read as “empty”, or “null”.

Perhaps use a router/filter to avoid using this module if you don’t need any records.

Hope this helps! Let me know if there are any further questions or issues.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!