Ensure quote policy is displayed as “Just me” when disabled because of visibility (#35894)

This commit is contained in:
Claire 2025-08-25 15:08:37 +02:00 committed by GitHub
commit 7a76f71d99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -253,7 +253,7 @@ export const VisibilityModal: FC<VisibilityModalProps> = forwardRef(
items={quoteItems}
onChange={handleQuotePolicyChange}
classPrefix='visibility-dropdown'
current={quotePolicy}
current={disableQuotePolicy ? 'nobody' : quotePolicy}
title={intl.formatMessage(messages.buttonTitle)}
disabled={disableQuotePolicy}
id={quoteDropdownId}