Skip to content

Commit

Permalink
fix (connectpage): edge case around non existing backend in config
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Apr 5, 2024
1 parent 3cab180 commit fd51c3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion public/assets/pages/connectpage/ctrl_form.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -49,7 +52,6 @@
padding-right: 10px;
}
.component_page_connection_form form button.emphasis {
margin-top: 10px;
color: white;
text-transform: uppercase;
}
Expand Down
3 changes: 2 additions & 1 deletion public/assets/pages/connectpage/ctrl_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fd51c3f

Please sign in to comment.