Issue with Kanban Component Stacking by Integer Field

Hello WeWeb Team,

I hope this message finds you well. I recently tried out the Kanban component on your platform and encountered a potential issue. When I stacked the elements using the “Status” field, which is in text format, everything worked as expected. However, when I attempted to stack elements by the “Batch” field, which is an integer, the component didn’t seem to function properly.

I’m unsure if this is a bug or if I may have overlooked a specific setting or configuration. I would appreciate any guidance or clarification on this matter.

Thank you for your assistance and looking forward to your response. Please see attached photos for reference.

Best regards,
Carlo


Hello, I have a feeling that WeWeb treating that 0 as a “0” resulting in a string might be an issue.
What you can do is the following:

Bind the stack to an array of object (each object is the combo of Label and Value - this one being a unique integer), this way you’re passing the 0 not the “0”, like this, it should work (it works for me)

Hi @Broberto , thank you so much. Works perfectly. :grinning:

1 Like