forked from MapComplete/MapComplete
Studio: WIP
This commit is contained in:
parent
9bce817f59
commit
89818019c3
11 changed files with 61 additions and 116 deletions
|
|
@ -28,9 +28,6 @@ export let path: (string | number)[] = [];
|
|||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="literal-code">
|
||||
{JSON.stringify(configs, null, " ")}
|
||||
</div>
|
||||
<div class="pl-2 flex flex-col gap-y-1 w-full">
|
||||
{#each configs as config}
|
||||
<SchemaBasedInput {state} path={path.concat(config.path)} schema={config} />
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@
|
|||
const oldOption = chosenOption;
|
||||
chosenOption = tags["value"] ? Number(tags["value"]) : defaultOption;
|
||||
const type = schema.type[chosenOption];
|
||||
console.log("Subtype is", type, {chosenOption, oldOption, schema});
|
||||
if (chosenOption !== oldOption) {
|
||||
// Reset the values beneath
|
||||
subSchemas = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue