備忘録として記載しておきます。
If you have both modal boxes in the same component then in the first modal box class you can write a condition as follows:
class="{!v.secondModal? 'slds-fade-in-open' : 'slds-modal slds-fade-in-open'}"
同じコンポーネントに2つのモーダルボックスがある場合、最初のモーダルボックスクラスで次のように条件を記述できます。
class="{!v.secondModal? 'slds-fade-in-open' : 'slds-modal slds-fade-in-open'}"
質問と回答
https://trailblazers.salesforce.com/answers?id=9064S000000DFRT