Hide elements in view seems to work but nothing hided

this is de code it throws no error but don’t hide anything i dont know why