feat: prefill template with empty JSON when creating new config

This commit is contained in:
sokol
2026-02-18 15:54:41 +03:00
parent 6565223b96
commit 7ddc8cde84

View File

@@ -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);
}