Conditional formatting of certain rows

I am trying to highlight more than one row in a dash table. I pass the values of the row index as a list instead on just one row index.But random rows are getting highlighted rather than the specified ones. Help is appreciated.