We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac08e00 commit 459a4f8Copy full SHA for 459a4f8
1 file changed
src/hooks/useGenericSettings.ts
@@ -535,7 +535,9 @@ const useGenericSettings = <T extends SettingsGroupName>(
535
if (groupName === 'content_filter' && key === 'full_text_kinds') {
536
prefixedSettings[key] = value;
537
} else {
538
- prefixedSettings[`${prefix}${key}`] = value;
+ // Skip prefixing if key already has the prefix to avoid double-prefixing
539
+ const prefixedKey = key.startsWith(prefix) ? key : `${prefix}${key}`;
540
+ prefixedSettings[prefixedKey] = value;
541
}
542
});
543
0 commit comments