Stop hierarchy from automatic expand

Greetings, is there a way to switch off the function that opens the whole hierarchy in the level scene or in the blueprint editor as soon as you change something?
It’s really stressful to work.

before anything is clicked:
image

after:
image

Thanks very much.