From d336aaf3f04136471970155b5a7cc876770c64ff Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 19 Jan 2024 17:27:29 -0800 Subject: [PATCH] Fixed: Don't clone indexer API Key Closes #6265 --- frontend/src/Store/Actions/Settings/indexers.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/Store/Actions/Settings/indexers.js b/frontend/src/Store/Actions/Settings/indexers.js index 10a2c2808..55e08a5c0 100644 --- a/frontend/src/Store/Actions/Settings/indexers.js +++ b/frontend/src/Store/Actions/Settings/indexers.js @@ -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;