fix (connectpage): edge case around non existing backend in config

This commit is contained in:
MickaelK 2024-04-05 17:50:11 +11:00
parent 3cab180956
commit fd51c3f39d
2 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,9 @@
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
background: white;
}
.component_page_connection_form .formbuilder:not(:empty) {
margin: 5px 0 10px 0;
}
.component_page_connection_form div.buttons {
display: flex;
margin: 0px 0px 15px 0px;
@ -49,7 +52,6 @@
padding-right: 10px;
}
.component_page_connection_form form button.emphasis {
margin-top: 10px;
color: white;
text-transform: uppercase;
}

View file

@ -68,7 +68,8 @@ export default async function(render) {
middleware: { type: "hidden" },
label: { type: "hidden", value: label },
};
return backendSpecs[type];
const emptyForm = {};
return backendSpecs[type] || {};
})),
)));
effect(getCurrentBackend().pipe(