Skip to content

Commit

Permalink
Fixed: Don't clone indexer API Key
Browse files Browse the repository at this point in the history
(cherry picked from commit d336aaf3f04136471970155b5a7cc876770c64ff)
  • Loading branch information
markus101 authored and mynameisbogdan committed Jan 20, 2024
1 parent bc9b2cd commit c003fe1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/Store/Actions/Settings/indexers.js
Expand Up @@ -150,7 +150,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;
Expand Down

0 comments on commit c003fe1

Please sign in to comment.