How to remove main checkmark when all the checkboxes are unchecked in ng2 smart table

I am trying to find a solution to remove the select all checkmark when all the present arrays are unchecked. Please find the screenshot for reference]1

enter image description here