1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00

Fixed: Don't clone indexer API Key

Closes #6265
This commit is contained in:
Mark McDowall 2024-01-19 17:27:29 -08:00 committed by Mark McDowall
parent ec40bc6eea
commit d336aaf3f0

View File

@ -149,7 +149,13 @@ export default {
delete selectedSchema.name; delete selectedSchema.name;
selectedSchema.fields = selectedSchema.fields.map((field) => { selectedSchema.fields = selectedSchema.fields.map((field) => {
return { ...field }; const newField = { ...field };
if (newField.privacy === 'apiKey' || newField.privacy === 'password') {
newField.value = '';
}
return newField;
}); });
newState.selectedSchema = selectedSchema; newState.selectedSchema = selectedSchema;