Why is the shader editor stuck on 1 material?
The push pin button is enabled on the Shader Editor View.  This locks the view.
[       ]
Please disable the the push pin to allow the view to synchronize with the current object selected. ⛸