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
1 changed files with 7 additions and 1 deletions

View File

@ -149,7 +149,13 @@ export default {
delete selectedSchema.name;
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;