Skip to content

Commit fd51c3f

Browse files
fix (connectpage): edge case around non existing backend in config
1 parent 3cab180 commit fd51c3f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

public/assets/pages/connectpage/ctrl_form.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
55
background: white;
66
}
7+
.component_page_connection_form .formbuilder:not(:empty) {
8+
margin: 5px 0 10px 0;
9+
}
710
.component_page_connection_form div.buttons {
811
display: flex;
912
margin: 0px 0px 15px 0px;
@@ -49,7 +52,6 @@
4952
padding-right: 10px;
5053
}
5154
.component_page_connection_form form button.emphasis {
52-
margin-top: 10px;
5355
color: white;
5456
text-transform: uppercase;
5557
}

public/assets/pages/connectpage/ctrl_form.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export default async function(render) {
6868
middleware: { type: "hidden" },
6969
label: { type: "hidden", value: label },
7070
};
71-
return backendSpecs[type];
71+
const emptyForm = {};
72+
return backendSpecs[type] || {};
7273
})),
7374
)));
7475
effect(getCurrentBackend().pipe(

0 commit comments

Comments
 (0)