How to edit multiple material slots of the same static mesh, named None, in UE5?


I want to correctly assign materials to the material elements that have become “None” in my static mesh, as shown in the screenshot. I tried to create the attached blueprint to replace all of the material slots on the same static mesh from None to a custom material type, but I have been unsuccessful. How do I do this correctly? Thanks.