fixed issue causing preventing custom search from working
This commit is contained in:
parent
9e8aad4cce
commit
975c58887b
@ -29,7 +29,7 @@ export async function cleanWidgetGroups(widgets) {
|
|||||||
return widgets.map((widget, index) => {
|
return widgets.map((widget, index) => {
|
||||||
const sanitizedOptions = widget.options;
|
const sanitizedOptions = widget.options;
|
||||||
const optionKeys = Object.keys(sanitizedOptions);
|
const optionKeys = Object.keys(sanitizedOptions);
|
||||||
["url", "username", "password", "key"].forEach((pO) => {
|
["username", "password", "key"].forEach((pO) => {
|
||||||
if (optionKeys.includes(pO)) {
|
if (optionKeys.includes(pO)) {
|
||||||
delete sanitizedOptions[pO];
|
delete sanitizedOptions[pO];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user