feat: prefill template with empty JSON when creating new config
This commit is contained in:
@@ -18,7 +18,8 @@ export function FileChooser(props: { onSelected: (x: Config) => void }) {
|
|||||||
|
|
||||||
function handleNew(){
|
function handleNew(){
|
||||||
let cfg = new Config();
|
let cfg = new Config();
|
||||||
cfg.addEnvs([new Env(0,"DEFAULT", [])]);
|
cfg.addEnvs([new Env(0, "DEFAULT", [])]);
|
||||||
|
cfg.addTemplate("{}");
|
||||||
props.onSelected(cfg);
|
props.onSelected(cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user