Fix “Media“ local settings page being inaccessible (#2922)

pull/2925/head
Claire 2024-12-28 19:31:27 +01:00 committed by GitHub
parent 3fc97b14f0
commit a6007ef5fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -63,25 +63,25 @@ class LocalSettingsNavigation extends PureComponent {
title={intl.formatMessage(messages.content_warnings)}
/>
<LocalSettingsNavigationItem
active={index === 4}
index={4}
active={index === 3}
index={3}
onNavigate={onNavigate}
icon='image'
iconComponent={ImageIcon}
title={intl.formatMessage(messages.media)}
/>
<LocalSettingsNavigationItem
active={index === 5}
active={index === 4}
href={preferencesLink}
index={5}
index={4}
icon='cog'
iconComponent={SettingsIcon}
title={intl.formatMessage(messages.preferences)}
/>
<LocalSettingsNavigationItem
active={index === 6}
active={index === 5}
className='close'
index={6}
index={5}
onNavigate={onClose}
icon='times'
iconComponent={CloseIcon}