Hi,
Please check this topic: Create two dependent Select attributes - #5 by andrii
I hope this is helpful to you.