fixed issue causing preventing custom search from working

This commit is contained in:
Josh 2022-10-21 22:33:57 -05:00
parent 9e8aad4cce
commit 975c58887b

View File

@ -29,7 +29,7 @@ export async function cleanWidgetGroups(widgets) {
return widgets.map((widget, index) => {
const sanitizedOptions = widget.options;
const optionKeys = Object.keys(sanitizedOptions);
["url", "username", "password", "key"].forEach((pO) => {
["username", "password", "key"].forEach((pO) => {
if (optionKeys.includes(pO)) {
delete sanitizedOptions[pO];
}