Component Error

Hi team,
I’ve implemented a transform script to change the color of the selected column in a Perspective table. However, I’m facing an issue where the view shows a component error when it first loads.

After adding or removing data, the table behaves normally again. Also, the selectedColumn property seems to retain the last selected value even after reopening the view.

Has anyone seen this behavior before or knows what might be causing it?
Any help would be appreciated. Thanks in advance.

in Gateway log show like this.

image