Hide button on selection of a row in a table component

There is a script written on a "on row select" event of a table component to perform editing on our table.

There is a button component -"button1" in a different view, I am trying to hide the button if row selected has a specific column, empty.

The functionality is working fine but when I am on a selected row and press a separate button-"button2" to empty the column. "Button1" component does not hide at the same time as and when the column is getting empty. To hide the Button1 component, we need to select different row and then again come back to the same row to proceed with functionality.

Is there anything I can add to the Button2 component's script to hide the Butto1 component hide, as and when the specific column of selected row gets empty ?

how are you hiding it right now?