Skip to content

Commit 39a1a01

Browse files
committed
Fixed incorrect duplicate category headings if there are multiple options within the same category.
1 parent 555c5de commit 39a1a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-ui/src/pages/SettingsPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ const SettingsPage = () => {
183183

184184
/** @type {Controls[]} */
185185
const updatedSettingsControls = addHandlersToSettings(settingsControls);
186+
const categories = {};
186187

187188
return (selectHasViewSettingsPermission(state) ||
188189
selectHasAdministerSettingsPermission(state)) ? (
189190
<div className="settings-page">
190191
{updatedSettingsControls.map((componentInfo, index) => {
191-
const categories = {};
192192
const Component = componentMapping[componentInfo.type.toUpperCase()];
193193
const info = {...componentInfo, name: titleCase(componentInfo.name)};
194194
if (categories[info.category]) {

0 commit comments

Comments
 (0)