mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-16 15:29:40 +02:00
Fixed: Don't clone indexer API Key
(cherry picked from commit d336aaf3f04136471970155b5a7cc876770c64ff)
This commit is contained in:
parent
bc9b2cd283
commit
c003fe16de
@ -150,7 +150,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user