Prevent old presets format from throwing errors
This commit is contained in:
1 parent
b92f547b26
commit
461950749f
2 files changed
+19
-10
No files matched your search
@@ -286,6 +286,14 @@ export const component: ClosureComponent = (): Component => {
|
||||
{
|
||||
onclick: () => {
|
||||
const cb = (): Children => {
|
||||
if (!preset.provision) {
|
||||
return m(
|
||||
"div",
|
||||
{ style: "margin:20px" },
|
||||
"This UI only supports presets with a single 'provision' configuraiton. If this preset was originally created from the old UI (genieacs-gui), you must edit it there."
|
||||
);
|
||||
}
|
||||
|
||||
return m(
|
||||
putFormComponent,
|
||||
Object.assign(
|
||||
|
||||
Reference in new issue
Block a user