Updating normal query panel to also work with expanded types and not flat types.

This commit is contained in:
mike12345567 2024-01-22 17:51:49 +00:00
parent 3236616307
commit 1f3a93fe3a
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<script> <script>
import KeyValueBuilder from "../KeyValueBuilder.svelte" import KeyValueBuilder from "../KeyValueBuilder.svelte"
import { SchemaTypeOptions } from "constants/backend" import { SchemaTypeOptionsExpanded } from "constants/backend"
export let schema export let schema
export let onSchemaChange = () => {} export let onSchemaChange = () => {}
@ -24,6 +24,7 @@
object={schema} object={schema}
name="field" name="field"
headings headings
options={SchemaTypeOptions} options={SchemaTypeOptionsExpanded}
compare={(option, value) => option.type === value.type}
/> />
{/key} {/key}