Embedded Views Not Receiving Data After Table Restyling

Hi all! I am currently working on restyling a table such that rows would have a red background conditionally. I am using the method outlined here: Changing colour of row based off value in cell in perspective table - #2 by cmallonee

While this method is working in general, my table does have some columns rendered as views. With the new data structure provided by this method (i.e., value and style properties for each piece of data), data is not properly being passed in to my embedded views. What can I do to mitigate the issue?

My previous data structure was along the lines of the below:

[{
    'value1': value,
    'value2': value
},
...]

With the changes, it now looks like this:

[{
    'value1': {
                 'value': value,
                 'style': { 'backgroundColor': '#FF0000' }
              },
    'value2': {
                 'value': value,
                 'style': { 'backgroundColor': '#FF0000' }
              }
},
...]

In the script example in your link, the code has an if statement and only includes a style dictionary for one of the columns based on some condition. So in that code example it is not applying to every single column, only Population.

It sounds like your logic should exclude the columns rendered as views from having the style dictionary added.