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