"TypeError: c is undefined" if index field is formula linking to link / lookup field and you try to color a row
Describe the problem
If the first field (index field) of a table is of type "formula", this formula links to a "link" or "lookup" field (maybe also other field types with array in it) and you try to select a condition to color the rows the error "TypeError: c is undefined" is logged and nothing happens.
Steps to reproduce
- Create new table and keep default columns like "Notes" and "Active"
- Change index field type to "formula" and select "Notes" field
- Try to select conditions for the background color of rows and click on "Add condition"
- Works
🎉
- Now add a new field to the table which is of type "link" and link it to another table (maybe you have to create the other table before)
- Change formula of index field to show the content of "link to table" field (I also tested it with lookup fields where the same bug happens)
- Now select coloring of rows and as soon as you click on "Add condition" the error "TypeError: c is undefined" is logged and nothing happens.
Actual result
Expected result
Coloring of rows should be possible no matter what type the index field is of.
Environment
Firefox 121.0 / Linux / baserow 1.22.2 (Docker Compose)
Edited by Christian